summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_metapage.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-02-23 09:47:13 -0600
committerDave Kleikamp <shaggy@austin.ibm.com>2006-02-23 09:47:13 -0600
commit5b3030e39049212c975665cdb3eeabcfaf7c94ca (patch)
tree93742231c2e01087ae36d7c05d8bd7bdb7ca8878 /fs/jfs/jfs_metapage.c
parentd9e902668e815f9f33ba5056089684b0704eeac6 (diff)
downloadtalos-obmc-linux-5b3030e39049212c975665cdb3eeabcfaf7c94ca.tar.gz
talos-obmc-linux-5b3030e39049212c975665cdb3eeabcfaf7c94ca.zip
JFS: kzalloc conversion
this converts fs/jfs to kzalloc() usage. compile tested with make allyesconfig Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs/jfs_metapage.c')
-rw-r--r--fs/jfs/jfs_metapage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c
index 8a53981f9f27..5fbaeaadccd3 100644
--- a/fs/jfs/jfs_metapage.c
+++ b/fs/jfs/jfs_metapage.c
@@ -104,10 +104,9 @@ static inline int insert_metapage(struct page *page, struct metapage *mp)
if (PagePrivate(page))
a = mp_anchor(page);
else {
- a = kmalloc(sizeof(struct meta_anchor), GFP_NOFS);
+ a = kzalloc(sizeof(struct meta_anchor), GFP_NOFS);
if (!a)
return -ENOMEM;
- memset(a, 0, sizeof(struct meta_anchor));
set_page_private(page, (unsigned long)a);
SetPagePrivate(page);
kmap(page);
OpenPOWER on IntegriCloud