summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs/null_vfsops.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/fs/nullfs/null_vfsops.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/fs/nullfs/null_vfsops.c')
-rw-r--r--sys/fs/nullfs/null_vfsops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index bfc26b4..ad6e1e9 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -296,10 +296,9 @@ nullfs_statfs(mp, sbp, td)
}
static int
-nullfs_sync(mp, waitfor, cred, td)
+nullfs_sync(mp, waitfor, td)
struct mount *mp;
int waitfor;
- struct ucred *cred;
struct thread *td;
{
/*
OpenPOWER on IntegriCloud