projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f3c29
)
fs/buffer.c: remove redundant initialization in alloc_page_buffers()
author
Yan Hong
<clouds.yan@gmail.com>
Wed, 12 Dec 2012 21:52:16 +0000
(13:52 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 13 Dec 2012 01:38:35 +0000
(17:38 -0800)
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>
fs/buffer.c
patch
|
blob
|
history
diff --git
a/fs/buffer.c
b/fs/buffer.c
index 9083e528e3c9a8d5876f230f70bc452ff9e5c70e..c017a2dfb9097e73837230d244ffb14f73dd0e1c 100644
(file)
--- 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 */