]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fs/buffer.c: remove unnecessary init operation after allocating buffer_head.
authormajianpeng <majianpeng@gmail.com>
Mon, 29 Apr 2013 22:08:51 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:39 +0000 (15:54 -0700)
commite76004093db167730bb3871d6c307a3e32a821f4
tree0aff1f7d9d66c0ae118e01c93b35335a6cde88d1
parent346404682434ad0e31b71f9f37fb6c45a46fe208
fs/buffer.c: remove unnecessary init operation after allocating buffer_head.

bh allocation uses kmem_cache_zalloc() so we needn't call
'init_buffer(bh, NULL, NULL)' and perform other set-zero-operations.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/buffer.c
fs/jbd/journal.c
fs/jbd2/journal.c