summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2022-01-12 16:27:38 +0100
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2022-01-13 15:30:48 +0100
commit1976b2b31462151403c9fc110204fcc2a77bdfd1 (patch)
tree038bd4b836e15106485df5583911f38f911ceb19 /fs/nfs/nfs4state.c
parentNFSv4 store server support for fs_location attribute (diff)
downloadlinux-1976b2b31462151403c9fc110204fcc2a77bdfd1.tar.xz
linux-1976b2b31462151403c9fc110204fcc2a77bdfd1.zip
NFSv4.1 query for fs_location attr on a new file system
Query the server for other possible trunkable locations for a given file system on a 4.1+ mount. v2: -- added missing static to nfs4_discover_trunking, reported by the kernel test robot Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r--fs/nfs/nfs4state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index f3265575c28d..499bef9fe118 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -2098,7 +2098,8 @@ static int nfs4_try_migration(struct nfs_server *server, const struct cred *cred
}
inode = d_inode(server->super->s_root);
- result = nfs4_proc_get_locations(inode, locations, page, cred);
+ result = nfs4_proc_get_locations(server, NFS_FH(inode), locations,
+ page, cred);
if (result) {
dprintk("<-- %s: failed to retrieve fs_locations: %d\n",
__func__, result);