summaryrefslogtreecommitdiffstats
path: root/fs/jbd/journal.c
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2007-10-19 08:39:20 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-19 20:53:34 +0200
commit8c3478a523a48470eb11a23f01249250684677d9 (patch)
tree5818d64427bcc1128fc74cc99e8f1fd1c9a54766 /fs/jbd/journal.c
parentisdn/sc: remove unused REQUEST_IRQ and unnecessary header file (diff)
downloadlinux-8c3478a523a48470eb11a23f01249250684677d9.tar.xz
linux-8c3478a523a48470eb11a23f01249250684677d9.zip
JBD/ext3 cleanups: convert to kzalloc
Convert kmalloc to kzalloc() and get rid of the memset(). Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/jbd/journal.c')
-rw-r--r--fs/jbd/journal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index 5d9fec0b7ebd..f810047a7195 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -654,10 +654,9 @@ static journal_t * journal_init_common (void)
journal_t *journal;
int err;
- journal = kmalloc(sizeof(*journal), GFP_KERNEL);
+ journal = kzalloc(sizeof(*journal), GFP_KERNEL);
if (!journal)
goto fail;
- memset(journal, 0, sizeof(*journal));
init_waitqueue_head(&journal->j_wait_transaction_locked);
init_waitqueue_head(&journal->j_wait_logspace);