diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2014-04-27 01:20:19 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-04-30 16:23:24 +0100 |
commit | 3863e89caec3c83dbeae9c3077389db6206dc8e7 (patch) | |
tree | 527c065419a237151f08d9c23c46cdd1deafa456 | |
parent | 4b739882ad223508c474f0f9f15c9f9c032277c1 (diff) |
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>
-rw-r--r-- | fs/nfsd/vfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h index 85d4d422458..c7fe96233bd 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 */ |