projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c097b
)
NFSv4.1 use pnfs_device maxcount for the blocklayout gdia_maxcount
author
Andy Adamson
<andros@netapp.com>
Tue, 25 Jun 2013 23:02:54 +0000
(19:02 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 28 Jun 2013 19:34:44 +0000
(15:34 -0400)
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/blocklayout.c
patch
|
blob
|
history
diff --git
a/fs/nfs/blocklayout/blocklayout.c
b/fs/nfs/blocklayout/blocklayout.c
index 1e5fdd3506e215f25faad7da4453360229430f56..e242bbf729723d1d45ae0cac7370952167b026cd 100644
(file)
--- 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);