diff options
author | bde <bde@FreeBSD.org> | 2007-01-25 13:07:25 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2007-01-25 13:07:25 +0000 |
commit | 5a952c0766dee9729427d7c4a558212750aae182 (patch) | |
tree | 772c0073d1de70b0ce8ca09f64842cc6f2a7c106 /sys/nfs4client | |
parent | 938276b2587b4bcf30d2cf0ccf9b994bb40ccb51 (diff) | |
download | FreeBSD-src-5a952c0766dee9729427d7c4a558212750aae182.zip FreeBSD-src-5a952c0766dee9729427d7c4a558212750aae182.tar.gz |
Unstaticize nfs_iosize() in nfsclient and use it in nfs4client instead
of duplicating it except for larger style bugs in the copy.
Fix some nearby style bugs (including a harmless type mismatch)
in and near the remaining copy.
This is part of fixing collisions of the 2 nfs*client's names. Even
static names should have a unique prefixes so that they can be debugged
easily.
Diffstat (limited to 'sys/nfs4client')
-rw-r--r-- | sys/nfs4client/nfs4_vfs_subs.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/nfs4client/nfs4_vfs_subs.c b/sys/nfs4client/nfs4_vfs_subs.c index ced9e23..6d667af 100644 --- a/sys/nfs4client/nfs4_vfs_subs.c +++ b/sys/nfs4client/nfs4_vfs_subs.c @@ -65,24 +65,6 @@ #include <nfsclient/nfsnode.h> -static int nfs_iosize(struct nfsmount *nmp); - -static int -nfs_iosize(struct nfsmount *nmp) -{ - int iosize; - - /* - * Calculate the size used for io buffers. Use the larger - * of the two sizes to minimise nfs requests but make sure - * that it is at least one VM page to avoid wasting buffer - * space. - */ - iosize = max(nmp->nm_rsize, nmp->nm_wsize); - if (iosize < PAGE_SIZE) iosize = PAGE_SIZE; - return iosize; -} - void nfs4_vfsop_fsinfo(struct nfsv4_fattr *fap, struct nfsmount *nmp) { |