diff options
Diffstat (limited to 'fs/nfs/nfs4filelayout.c')
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index cd289d9b7de7..501a9b86b318 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -441,7 +441,8 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo, | |||
441 | } | 441 | } |
442 | 442 | ||
443 | /* find and reference the deviceid */ | 443 | /* find and reference the deviceid */ |
444 | d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode)->nfs_client, id); | 444 | d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode)->pnfs_curr_ld, |
445 | NFS_SERVER(lo->plh_inode)->nfs_client, id); | ||
445 | if (d == NULL) { | 446 | if (d == NULL) { |
446 | dsaddr = get_device_info(lo->plh_inode, id, gfp_flags); | 447 | dsaddr = get_device_info(lo->plh_inode, id, gfp_flags); |
447 | if (dsaddr == NULL) | 448 | if (dsaddr == NULL) |