Commit 968fe252 authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust

NFSv4.1 use pnfs_device maxcount for the blocklayout gdia_maxcount

Signed-off-by: default avatarAndy Adamson <andros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent f1c097be
...@@ -1089,6 +1089,7 @@ nfs4_blk_get_deviceinfo(struct nfs_server *server, const struct nfs_fh *fh, ...@@ -1089,6 +1089,7 @@ nfs4_blk_get_deviceinfo(struct nfs_server *server, const struct nfs_fh *fh,
dev->pgbase = 0; dev->pgbase = 0;
dev->pglen = PAGE_SIZE * max_pages; dev->pglen = PAGE_SIZE * max_pages;
dev->mincount = 0; dev->mincount = 0;
dev->maxcount = max_resp_sz - nfs41_maxgetdevinfo_overhead;
dprintk("%s: dev_id: %s\n", __func__, dev->dev_id.data); dprintk("%s: dev_id: %s\n", __func__, dev->dev_id.data);
rc = nfs4_proc_getdeviceinfo(server, dev, NULL); rc = nfs4_proc_getdeviceinfo(server, dev, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment