aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/vfs.h')
-rw-r--r--fs/nfsd/vfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h
index 359594c393d2..5b5894159f22 100644
--- a/fs/nfsd/vfs.h
+++ b/fs/nfsd/vfs.h
@@ -6,6 +6,7 @@
6#define LINUX_NFSD_VFS_H 6#define LINUX_NFSD_VFS_H
7 7
8#include "nfsfh.h" 8#include "nfsfh.h"
9#include "nfsd.h"
9 10
10/* 11/*
11 * Flags for nfsd_permission 12 * Flags for nfsd_permission
@@ -125,4 +126,11 @@ static inline void fh_drop_write(struct svc_fh *fh)
125 } 126 }
126} 127}
127 128
129static inline __be32 fh_getattr(struct svc_fh *fh, struct kstat *stat)
130{
131 struct path p = {.mnt = fh->fh_export->ex_path.mnt,
132 .dentry = fh->fh_dentry};
133 return nfserrno(vfs_getattr(&p, stat));
134}
135
128#endif /* LINUX_NFSD_VFS_H */ 136#endif /* LINUX_NFSD_VFS_H */