diff options
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index f95e3b58bbc3..3b2b20534a3a 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -1902,7 +1902,7 @@ static int nfs4_try_migration(struct nfs_server *server, struct rpc_cred *cred) | |||
1902 | goto out; | 1902 | goto out; |
1903 | } | 1903 | } |
1904 | 1904 | ||
1905 | inode = server->super->s_root->d_inode; | 1905 | inode = d_inode(server->super->s_root); |
1906 | result = nfs4_proc_get_locations(inode, locations, page, cred); | 1906 | result = nfs4_proc_get_locations(inode, locations, page, cred); |
1907 | if (result) { | 1907 | if (result) { |
1908 | dprintk("<-- %s: failed to retrieve fs_locations: %d\n", | 1908 | dprintk("<-- %s: failed to retrieve fs_locations: %d\n", |
@@ -2021,7 +2021,7 @@ restart: | |||
2021 | 2021 | ||
2022 | rcu_read_unlock(); | 2022 | rcu_read_unlock(); |
2023 | 2023 | ||
2024 | inode = server->super->s_root->d_inode; | 2024 | inode = d_inode(server->super->s_root); |
2025 | status = nfs4_proc_fsid_present(inode, cred); | 2025 | status = nfs4_proc_fsid_present(inode, cred); |
2026 | if (status != -NFS4ERR_MOVED) | 2026 | if (status != -NFS4ERR_MOVED) |
2027 | goto restart; /* wasn't this one */ | 2027 | goto restart; /* wasn't this one */ |