NFSv4.1: Use session max response size for GETDEVICEINFO gdia_maxcount

We prepare for the largest possible GETDEVICEINFO response, which
can not be greater than the negotiated session maximum response size.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Andy Adamson 2012-06-06 23:57:13 -04:00 committed by Trond Myklebust
parent 2f2c63bc22
commit 05bf14adca
1 changed files with 1 additions and 1 deletions

View File

@ -728,7 +728,7 @@ get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_fla
pdev->layout_type = LAYOUT_NFSV4_1_FILES; pdev->layout_type = LAYOUT_NFSV4_1_FILES;
pdev->pages = pages; pdev->pages = pages;
pdev->pgbase = 0; pdev->pgbase = 0;
pdev->pglen = PAGE_SIZE * max_pages; pdev->pglen = max_resp_sz;
pdev->mincount = 0; pdev->mincount = 0;
rc = nfs4_proc_getdeviceinfo(server, pdev); rc = nfs4_proc_getdeviceinfo(server, pdev);