summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_metapage.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-02-23 16:47:13 +0100
committerDave Kleikamp <shaggy@austin.ibm.com>2006-02-23 16:47:13 +0100
commit5b3030e39049212c975665cdb3eeabcfaf7c94ca (patch)
tree93742231c2e01087ae36d7c05d8bd7bdb7ca8878 /fs/jfs/jfs_metapage.c
parentJFS: Add missing file from fa3241d24cf1182b0ffb6e4d412c3bc2a2ab7bf6 (diff)
downloadlinux-5b3030e39049212c975665cdb3eeabcfaf7c94ca.tar.xz
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);