Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299891
b: refs/heads/master
c: e5265a0
h: refs/heads/master
i:
  299889: be38f1f
  299887: 0893e09
v: v3
  • Loading branch information
Andy Adamson authored and Trond Myklebust committed Apr 26, 2012
1 parent 62f0184 commit b7bd5e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9526b2b6d6b9f183b66cf21c4afa6e79d5a14f44
refs/heads/master: e5265a0c587423bbd21a6b39a572cecff16b9346
2 changes: 1 addition & 1 deletion trunk/fs/nfs/nfs4filelayoutdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_fla
* GETDEVICEINFO's maxcount
*/
max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz;
max_pages = max_resp_sz >> PAGE_SHIFT;
max_pages = nfs_page_array_len(0, max_resp_sz);
dprintk("%s inode %p max_resp_sz %u max_pages %d\n",
__func__, inode, max_resp_sz, max_pages);

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/nfs/pnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ send_layoutget(struct pnfs_layout_hdr *lo,

/* allocate pages for xdr post processing */
max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz;
max_pages = max_resp_sz >> PAGE_SHIFT;
max_pages = nfs_page_array_len(0, max_resp_sz);

pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags);
if (!pages)
Expand Down

0 comments on commit b7bd5e7

Please sign in to comment.