summaryrefslogtreecommitdiff
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-20 13:44:10 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-03-20 13:44:10 -0500
commitbd6475454c774bd9dbe6078d94bbf72b1d3b65f4 (patch)
tree641c38589e2aa02a22db229be7d77c9c342a81cb /fs/nfs/write.c
parenta162a6b804b48c605d1fd35e1861a5d32d00ad3f (diff)
NFS: kzalloc conversion in fs/nfs
this converts fs/nfs to kzalloc() usage. compile tested with make allyesconfig Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index d6ad449041eb..92ecf24455c3 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -100,10 +100,8 @@ static inline struct nfs_write_data *nfs_commit_alloc(unsigned int pagecount)
p->pagevec = &p->page_array[0];
else {
size_t size = ++pagecount * sizeof(struct page *);
- p->pagevec = kmalloc(size, GFP_NOFS);
- if (p->pagevec) {
- memset(p->pagevec, 0, size);
- } else {
+ p->pagevec = kzalloc(size, GFP_NOFS);
+ if (!p->pagevec) {
mempool_free(p, nfs_commit_mempool);
p = NULL;
}