diff options
author | J. Bruce Fields <bfields@redhat.com> | 2016-07-20 16:16:06 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-08-04 17:11:49 -0400 |
commit | b44061d0b914c11fb8f8a747c91d111973f56d76 (patch) | |
tree | cc94f0ce9201a9d70c5330ce55d4ec30421dfb67 /fs/nfsd/vfs.h | |
parent | e75b23f9e323b1e0759619c39d5a9f7a3a5d9d2c (diff) | |
download | linux-stable-b44061d0b914c11fb8f8a747c91d111973f56d76.tar.gz linux-stable-b44061d0b914c11fb8f8a747c91d111973f56d76.tar.bz2 linux-stable-b44061d0b914c11fb8f8a747c91d111973f56d76.zip |
nfsd: reorganize nfsd_create
There's some odd logic in nfsd_create() that allows it to be called with
the parent directory either locked or unlocked. The only already-locked
caller is NFSv2's nfsd_proc_create(). It's less confusing to split out
the unlocked case into a separate function which the NFSv2 code can call
directly.
Also fix some comments while we're here.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.h')
-rw-r--r-- | fs/nfsd/vfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h index 2d573ec057f8..3cbb1b33777b 100644 --- a/fs/nfsd/vfs.h +++ b/fs/nfsd/vfs.h @@ -59,6 +59,9 @@ __be32 nfsd4_vfs_fallocate(struct svc_rqst *, struct svc_fh *, __be32 nfsd4_clone_file_range(struct file *, u64, struct file *, u64, u64); #endif /* CONFIG_NFSD_V4 */ +__be32 nfsd_create_locked(struct svc_rqst *, struct svc_fh *, + char *name, int len, struct iattr *attrs, + int type, dev_t rdev, struct svc_fh *res); __be32 nfsd_create(struct svc_rqst *, struct svc_fh *, char *name, int len, struct iattr *attrs, int type, dev_t rdev, struct svc_fh *res); |