From: Yan Hong Date: Wed, 12 Dec 2012 21:52:16 +0000 (-0800) Subject: fs/buffer.c: remove redundant initialization in alloc_page_buffers() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=02c0ab684fc41bc13ba8d5ad89b0dc73b092fa08;p=linux-beck.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 Signed-off-by: Linus Torvalds --- diff --git a/fs/buffer.c b/fs/buffer.c index 9083e528e3c9..c017a2dfb909 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 */