Skip to content

Commit

Permalink
fs/buffer.c: remove duplicated assignment to b_private
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 26, 2010
1 parent d882626 commit 1df79da
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,6 @@ struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,

bh->b_state = 0;
atomic_set(&bh->b_count, 0);
bh->b_private = NULL;
bh->b_size = size;

/* Link the buffer to its page */
Expand Down

0 comments on commit 1df79da

Please sign in to comment.