aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2014-04-27 01:20:19 +0100
committerBen Hutchings <ben@decadent.org.uk>2014-04-30 16:23:24 +0100
commit3863e89caec3c83dbeae9c3077389db6206dc8e7 (patch)
tree527c065419a237151f08d9c23c46cdd1deafa456 /fs/nfsd
parent4b739882ad223508c474f0f9f15c9f9c032277c1 (diff)
downloadkernel_samsung_smdk4412-3863e89caec3c83dbeae9c3077389db6206dc8e7.zip
kernel_samsung_smdk4412-3863e89caec3c83dbeae9c3077389db6206dc8e7.tar.gz
kernel_samsung_smdk4412-3863e89caec3c83dbeae9c3077389db6206dc8e7.tar.bz2
nfsd: Add fh_{want,drop}_write()
Part of commit bad0dcffc21d17a07dbb83a2bf764f35a57feba5 ('new helpers: fh_{want,drop}_write()') upstream. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/vfs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h
index 85d4d42..c7fe962 100644
--- a/fs/nfsd/vfs.h
+++ b/fs/nfsd/vfs.h
@@ -108,4 +108,14 @@ struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int);
int nfsd_set_posix_acl(struct svc_fh *, int, struct posix_acl *);
#endif
+static inline int fh_want_write(struct svc_fh *fh)
+{
+ return mnt_want_write(fh->fh_export->ex_path.mnt);
+}
+
+static inline void fh_drop_write(struct svc_fh *fh)
+{
+ mnt_drop_write(fh->fh_export->ex_path.mnt);
+}
+
#endif /* LINUX_NFSD_VFS_H */