summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYan Hong <clouds.yan@gmail.com>2012-12-12 13:52:16 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-12 17:38:35 -0800
commit02c0ab684fc41bc13ba8d5ad89b0dc73b092fa08 (patch)
treed3fe328863b82cb9c6323bb460a733bd7be9e2fd /fs
parenta3f3c29cb290a2d5d26e3cf5504f447fd7256a81 (diff)
downloadop-kernel-dev-02c0ab684fc41bc13ba8d5ad89b0dc73b092fa08.zip
op-kernel-dev-02c0ab684fc41bc13ba8d5ad89b0dc73b092fa08.tar.gz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/buffer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 9083e52..c017a2d 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 */
OpenPOWER on IntegriCloud