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 <clouds.yan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Yan Hong 2012-12-12 13:52:16 -08:00 коммит произвёл Linus Torvalds
Родитель a3f3c29cb2
Коммит 02c0ab684f
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -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 */