Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294436
b: refs/heads/master
c: 7d9dea9
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 1, 2012
1 parent bd0735c commit f4348aa
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: 4601df20fb3bf2b87e248abc622b8a7e4c3059fb
refs/heads/master: 7d9dea915fe333357912bce2d624ee848dfbd890
2 changes: 1 addition & 1 deletion trunk/fs/nfs/blocklayout/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int _preload_range(struct pnfs_inval_markings *marks,
count = (int)(end - start) / (int)tree->mtt_step_size;

/* Pre-malloc what memory we might need */
storage = kmalloc(sizeof(*storage) * count, GFP_NOFS);
storage = kcalloc(count, sizeof(*storage), GFP_NOFS);
if (!storage)
return -ENOMEM;
for (i = 0; i < count; i++) {
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 @@ -590,7 +590,7 @@ send_layoutget(struct pnfs_layout_hdr *lo,
max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz;
max_pages = max_resp_sz >> PAGE_SHIFT;

pages = kzalloc(max_pages * sizeof(struct page *), gfp_flags);
pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags);
if (!pages)
goto out_err_free;

Expand Down

0 comments on commit f4348aa

Please sign in to comment.