From c434a6bade3a1028e93611d6aa172786e8218e41 Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Sun, 19 Dec 2010 21:41:55 -0500 Subject: [PATCH] --- yaml --- r: 229107 b: refs/heads/master c: b17b35ec13adfeb0346d4b329110b14adc509327 h: refs/heads/master i: 229105: b9c34361edda5535a8709ab0c572c4d0b19091f7 229103: e87700be7e28cbfc5dfc73d24b4350975421e5dc v: v3 --- [refs] | 2 +- trunk/fs/ext4/page-io.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 5795cab1d3c2..5196dc8af82e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6ca7b13dea385484e2fcc89790b8030697c5014a +refs/heads/master: b17b35ec13adfeb0346d4b329110b14adc509327 diff --git a/trunk/fs/ext4/page-io.c b/trunk/fs/ext4/page-io.c index beacce11ac50..0f5dfe0e83e7 100644 --- a/trunk/fs/ext4/page-io.c +++ b/trunk/fs/ext4/page-io.c @@ -158,11 +158,8 @@ static void ext4_end_io_work(struct work_struct *work) ext4_io_end_t *ext4_init_io_end(struct inode *inode, gfp_t flags) { - ext4_io_end_t *io = NULL; - - io = kmem_cache_alloc(io_end_cachep, flags); + ext4_io_end_t *io = kmem_cache_zalloc(io_end_cachep, flags); if (io) { - memset(io, 0, sizeof(*io)); atomic_inc(&EXT4_I(inode)->i_ioend_count); io->inode = inode; INIT_WORK(&io->work, ext4_end_io_work);