projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b73988
)
nfsd: Add fh_{want,drop}_write()
author
Ben Hutchings
<ben@decadent.org.uk>
Sun, 27 Apr 2014 00:20:19 +0000
(
01:20
+0100)
committer
Ben Hutchings
<ben@decadent.org.uk>
Wed, 30 Apr 2014 15:23:24 +0000
(16:23 +0100)
Part of commit
bad0dcffc21d17a07dbb83a2bf764f35a57feba5
('new helpers: fh_{want,drop}_write()') upstream.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfsd/vfs.h
patch
|
blob
|
history
diff --git
a/fs/nfsd/vfs.h
b/fs/nfsd/vfs.h
index 85d4d422458a13cc41c0a3323494ca4a82390781..c7fe96233bd7309729f2eeb289dc7f82b8e17bf4 100644
(file)
--- 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 */