]> Pileus Git - ~andy/linux/blobdiff - fs/nfsd/vfs.h
new helpers: fh_{want,drop}_write()
[~andy/linux] / fs / nfsd / vfs.h
index 3f54ad03bb2b6b6a5a442b44d567638b029724da..cee6a12296e89ce50ac125e3d7970f0a9cbccf22 100644 (file)
@@ -106,4 +106,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 */