summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-11 07:36:22 +0000
committerphk <phk@FreeBSD.org>2005-01-11 07:36:22 +0000
commitda2718f1af898ee94e792d508153bc47de407fe3 (patch)
tree7316b582ef3e13abcf40fdc592649edfe19bde75 /sys/kern/vfs_vnops.c
parent63ced9b235017eb23882751a80aa345b4e4cf075 (diff)
downloadFreeBSD-src-da2718f1af898ee94e792d508153bc47de407fe3.zip
FreeBSD-src-da2718f1af898ee94e792d508153bc47de407fe3.tar.gz
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
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index e69ceda..3e98446 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1021,7 +1021,7 @@ vfs_write_suspend(mp)
mp->mnt_kern_flag |= MNTK_SUSPEND;
if (mp->mnt_writeopcount > 0)
(void) tsleep(&mp->mnt_writeopcount, PUSER - 1, "suspwt", 0);
- if ((error = VFS_SYNC(mp, MNT_WAIT, td->td_ucred, td)) != 0) {
+ if ((error = VFS_SYNC(mp, MNT_WAIT, td)) != 0) {
vfs_write_resume(mp);
return (error);
}
OpenPOWER on IntegriCloud