Skip to content

Commit

Permalink
[PATCH] reiserfs: zero b_private when allocating buffer heads
Browse files Browse the repository at this point in the history
The b_private field in buffer heads needs to be zero filled when the
buffers are allocated.  Thanks to Nathan Scott for finding this.  It was
causing problems on systems with both XFS and reiserfs.

Signed-off-by: Chris Mason <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Chris Mason authored and Linus Torvalds committed Feb 1, 2006
1 parent d62b1b8 commit fc5cd58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ 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 fc5cd58

Please sign in to comment.