Skip to content

Commit 1df79da

Browse files
namhyungtorvalds
authored andcommitted
fs/buffer.c: remove duplicated assignment to b_private
bh->b_private is initialized within init_buffer(), thus this assignment is redundant. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d882626 commit 1df79da

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/buffer.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,6 @@ struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
905905

906906
bh->b_state = 0;
907907
atomic_set(&bh->b_count, 0);
908-
bh->b_private = NULL;
909908
bh->b_size = size;
910909

911910
/* Link the buffer to its page */

0 commit comments

Comments
 (0)