diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-01-24 12:31:06 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-01-24 12:31:06 +0000 |
commit | 56dd36b1a69f58c1445a876b22850c7b921670fd (patch) | |
tree | 77150cec4edeae78f2822693f106746ee29e0386 /sys/nfsclient/nfs_bio.c | |
parent | 90d52f2f21441e489ac08e6c130a8532060834f3 (diff) | |
download | src-56dd36b1a69f58c1445a876b22850c7b921670fd.tar.gz src-56dd36b1a69f58c1445a876b22850c7b921670fd.zip |
Remove unused cred arg from nfs_vinvalbuf() and many bogus arguments
passed for it.
Notes
Notes:
svn path=/head/; revision=140731
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index beaa0b1c2a7f..f0f5d53d51e7 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -409,7 +409,7 @@ nfs_bioread(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) if (vp->v_type != VDIR) panic("nfs: bioread, not dir"); (nmp->nm_rpcops->nr_invaldir)(vp); - error = nfs_vinvalbuf(vp, V_SAVE, cred, td, 1); + error = nfs_vinvalbuf(vp, V_SAVE, td, 1); if (error) return (error); } @@ -426,7 +426,7 @@ nfs_bioread(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) || (NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime))) { if (vp->v_type == VDIR) (nmp->nm_rpcops->nr_invaldir)(vp); - error = nfs_vinvalbuf(vp, V_SAVE, cred, td, 1); + error = nfs_vinvalbuf(vp, V_SAVE, td, 1); if (error) return (error); np->n_mtime = vattr.va_mtime; @@ -587,7 +587,7 @@ again: } while (error == NFSERR_BAD_COOKIE) { (nmp->nm_rpcops->nr_invaldir)(vp); - error = nfs_vinvalbuf(vp, 0, cred, td, 1); + error = nfs_vinvalbuf(vp, 0, td, 1); /* * Yuck! The directory has been modified on the * server. The only way to get the block is by @@ -881,7 +881,7 @@ nfs_write(struct vop_write_args *ap) if (ioflag & (IO_APPEND | IO_SYNC)) { if (np->n_flag & NMODIFIED) { np->n_attrstamp = 0; - error = nfs_vinvalbuf(vp, V_SAVE, cred, td, 1); + error = nfs_vinvalbuf(vp, V_SAVE, td, 1); if (error) return (error); } @@ -1221,8 +1221,7 @@ nfs_getcacheblk(struct vnode *vp, daddr_t bn, int size, struct thread *td) * doing the flush, just wait for completion. */ int -nfs_vinvalbuf(struct vnode *vp, int flags, struct ucred *cred, - struct thread *td, int intrflg) +nfs_vinvalbuf(struct vnode *vp, int flags, struct thread *td, int intrflg) { struct nfsnode *np = VTONFS(vp); struct nfsmount *nmp = VFSTONFS(vp->v_mount); |