diff options
author | Andy Adamson <andros@netapp.com> | 2013-06-26 01:02:54 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-06-28 21:34:44 +0200 |
commit | 968fe252437e5896e28271b7e7200e63c5c1d196 (patch) | |
tree | 473af5ebe3ecc0eed734e75199eb04d152f23396 /fs/nfs/blocklayout | |
parent | NFSv4.1 Fix gdia_maxcount calculation to fit in ca_maxresponsesize (diff) | |
download | linux-968fe252437e5896e28271b7e7200e63c5c1d196.tar.xz 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); |