Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21331
b: refs/heads/master
c: 5b3030e
h: refs/heads/master
i:
  21329: c684c7b
  21327: 4030cb6
v: v3
  • Loading branch information
Eric Sesterhenn authored and Dave Kleikamp committed Feb 23, 2006
1 parent cf9de11 commit 5151d1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 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: d9e902668e815f9f33ba5056089684b0704eeac6
refs/heads/master: 5b3030e39049212c975665cdb3eeabcfaf7c94ca
9 changes: 3 additions & 6 deletions trunk/fs/jfs/jfs_logmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,11 +1105,10 @@ int lmLogOpen(struct super_block *sb)
}
}

if (!(log = kmalloc(sizeof(struct jfs_log), GFP_KERNEL))) {
if (!(log = kzalloc(sizeof(struct jfs_log), GFP_KERNEL))) {
up(&jfs_log_sem);
return -ENOMEM;
}
memset(log, 0, sizeof(struct jfs_log));
INIT_LIST_HEAD(&log->sb_list);
init_waitqueue_head(&log->syncwait);

Expand Down Expand Up @@ -1181,9 +1180,8 @@ static int open_inline_log(struct super_block *sb)
struct jfs_log *log;
int rc;

if (!(log = kmalloc(sizeof(struct jfs_log), GFP_KERNEL)))
if (!(log = kzalloc(sizeof(struct jfs_log), GFP_KERNEL)))
return -ENOMEM;
memset(log, 0, sizeof(struct jfs_log));
INIT_LIST_HEAD(&log->sb_list);
init_waitqueue_head(&log->syncwait);

Expand Down Expand Up @@ -1216,12 +1214,11 @@ static int open_dummy_log(struct super_block *sb)

down(&jfs_log_sem);
if (!dummy_log) {
dummy_log = kmalloc(sizeof(struct jfs_log), GFP_KERNEL);
dummy_log = kzalloc(sizeof(struct jfs_log), GFP_KERNEL);
if (!dummy_log) {
up(&jfs_log_sem);
return -ENOMEM;
}
memset(dummy_log, 0, sizeof(struct jfs_log));
INIT_LIST_HEAD(&dummy_log->sb_list);
init_waitqueue_head(&dummy_log->syncwait);
dummy_log->no_integrity = 1;
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/jfs/jfs_metapage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/jfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,9 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
if (!new_valid_dev(sb->s_bdev->bd_dev))
return -EOVERFLOW;

sbi = kmalloc(sizeof (struct jfs_sb_info), GFP_KERNEL);
sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL);
if (!sbi)
return -ENOSPC;
memset(sbi, 0, sizeof (struct jfs_sb_info));
sb->s_fs_info = sbi;
sbi->sb = sb;

Expand Down

0 comments on commit 5151d1e

Please sign in to comment.