mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
new helpers: fh_{want,drop}_write()
A bunch of places in nfsd does mnt_{want,drop}_write on vfsmount of export of given fhandle. Switched to obvious inlined helpers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a561be7100
commit
bad0dcffc2
3 changed files with 29 additions and 19 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue