From: Yan Hong Date: Thu, 29 Nov 2012 03:18:12 +0000 (+1100) Subject: fs/buffer.c: remove redundant initialization in alloc_page_buffers() X-Git-Tag: next-20121205~1^2~224 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=add96c71588eef3e407e953160f97f5bad1a66ec;p=karo-tx-linux.git fs/buffer.c: remove redundant initialization in alloc_page_buffers() buffer_head comes from kmem_cache_zalloc(), no need to zero its fields. Signed-off-by: Yan Hong Signed-off-by: Andrew Morton --- diff --git a/fs/buffer.c b/fs/buffer.c index 2ae630a9a4ca..70ed4d8c023b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -849,13 +849,10 @@ try_again: if (!bh) goto no_grow; - bh->b_bdev = NULL; bh->b_this_page = head; bh->b_blocknr = -1; head = bh; - bh->b_state = 0; - atomic_set(&bh->b_count, 0); bh->b_size = size; /* Link the buffer to its page */