projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2c63b
)
NFSv4.1: Use session max response size for GETDEVICEINFO gdia_maxcount
author
Andy Adamson
<andros@netapp.com>
Thu, 7 Jun 2012 03:57:13 +0000
(23:57 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 28 Jun 2012 21:20:50 +0000
(17:20 -0400)
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>
fs/nfs/nfs4filelayoutdev.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4filelayoutdev.c
b/fs/nfs/nfs4filelayoutdev.c
index a1fab8da7f03c8819951af81d95e6268a71dc80f..f81231f30d949aa5d6b8a328cce91b792c656004 100644
(file)
--- a/
fs/nfs/nfs4filelayoutdev.c
+++ b/
fs/nfs/nfs4filelayoutdev.c
@@
-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->pages = pages;
pdev->pgbase = 0;
- pdev->pglen =
PAGE_SIZE * max_pages
;
+ pdev->pglen =
max_resp_sz
;
pdev->mincount = 0;
rc = nfs4_proc_getdeviceinfo(server, pdev);