diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-04-07 13:50:59 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-06-04 12:07:07 -0400 |
commit | a841b54dbd65421726caf7129f8951910c7a8ea6 (patch) | |
tree | 6d39aa190863b61863885ad66c8247f21746af9c /fs/nfs/nfs3proc.c | |
parent | 30846df06f937b692ea658aaf7e28acf56a255f8 (diff) |
NFS: Pass the inode down to the getattr() callback
Allow the getattr() callback to check things like whether or not we hold
a delegation so that it can adjust the attributes that it is asking for.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfs3proc.c')
-rw-r--r-- | fs/nfs/nfs3proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 5645ef4c5259..ec8a9efa268f 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c | |||
@@ -101,7 +101,8 @@ nfs3_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle, | |||
101 | */ | 101 | */ |
102 | static int | 102 | static int |
103 | nfs3_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, | 103 | nfs3_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, |
104 | struct nfs_fattr *fattr, struct nfs4_label *label) | 104 | struct nfs_fattr *fattr, struct nfs4_label *label, |
105 | struct inode *inode) | ||
105 | { | 106 | { |
106 | struct rpc_message msg = { | 107 | struct rpc_message msg = { |
107 | .rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR], | 108 | .rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR], |