diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-01-11 07:36:22 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-01-11 07:36:22 +0000 |
commit | 8df6bac4c74fad8167cbb05a2a358a36b1ce6f78 (patch) | |
tree | 7316b582ef3e13abcf40fdc592649edfe19bde75 /sys/nfsserver | |
parent | ad3142eda4f934d9940348293082cc1392ce550d (diff) | |
download | src-8df6bac4c74fad8167cbb05a2a358a36b1ce6f78.tar.gz src-8df6bac4c74fad8167cbb05a2a358a36b1ce6f78.zip |
Remove the unused credential argument from VOP_FSYNC() and VFS_SYNC().
I'm not sure why a credential was added to these in the first place, it is
not used anywhere and it doesn't make much sense:
The credentials for syncing a file (ability to write to the
file) should be checked at the system call level.
Credentials for syncing one or more filesystems ("none")
should be checked at the system call level as well.
If the filesystem implementation needs a particular credential
to carry out the syncing it would logically have to the
cached mount credential, or a credential cached along with
any delayed write data.
Discussed with: rwatson
Notes
Notes:
svn path=/head/; revision=140048
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 778dc5ecf635..21aff156ee49 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -4042,7 +4042,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, vm_object_page_clean(vp->v_object, 0, 0, OBJPC_SYNC); VM_OBJECT_UNLOCK(vp->v_object); } - error = VOP_FSYNC(vp, cred, MNT_WAIT, td); + error = VOP_FSYNC(vp, MNT_WAIT, td); } else { /* * Locate and synchronously write any buffers that fall |