diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2022-01-12 10:27:38 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2022-01-13 09:30:48 -0500 |
commit | 1976b2b31462151403c9fc110204fcc2a77bdfd1 (patch) | |
tree | 038bd4b836e15106485df5583911f38f911ceb19 /fs/nfs/nfs4state.c | |
parent | 8a59bb93b7e3cca389af44781a429ac12ac49be6 (diff) | |
download | linux-1976b2b31462151403c9fc110204fcc2a77bdfd1.tar.gz linux-1976b2b31462151403c9fc110204fcc2a77bdfd1.tar.bz2 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.c | 3 |
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); |