Commit 3863e89c authored by Ben Hutchings's avatar Ben Hutchings

nfsd: Add fh_{want,drop}_write()

Part of commit bad0dcff
('new helpers: fh_{want,drop}_write()') upstream.
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 4b739882
...@@ -108,4 +108,14 @@ struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int); ...@@ -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 *); int nfsd_set_posix_acl(struct svc_fh *, int, struct posix_acl *);
#endif #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 */ #endif /* LINUX_NFSD_VFS_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment