diff options
author | Andy Adamson <andros@netapp.com> | 2013-06-25 19:02:54 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-06-28 15:34:44 -0400 |
commit | 968fe252437e5896e28271b7e7200e63c5c1d196 (patch) | |
tree | 473af5ebe3ecc0eed734e75199eb04d152f23396 /fs/nfs/blocklayout | |
parent | f1c097be2b35dcfc06c1c591194d78058dd67284 (diff) | |
download | linux-968fe252437e5896e28271b7e7200e63c5c1d196.tar.gz linux-968fe252437e5896e28271b7e7200e63c5c1d196.tar.bz2 linux-968fe252437e5896e28271b7e7200e63c5c1d196.zip |
NFSv4.1 use pnfs_device maxcount for the blocklayout gdia_maxcount
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/blocklayout')
-rw-r--r-- | fs/nfs/blocklayout/blocklayout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index 1e5fdd3506e2..e242bbf72972 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c @@ -1089,6 +1089,7 @@ nfs4_blk_get_deviceinfo(struct nfs_server *server, const struct nfs_fh *fh, dev->pgbase = 0; dev->pglen = PAGE_SIZE * max_pages; dev->mincount = 0; + dev->maxcount = max_resp_sz - nfs41_maxgetdevinfo_overhead; dprintk("%s: dev_id: %s\n", __func__, dev->dev_id.data); rc = nfs4_proc_getdeviceinfo(server, dev, NULL); |