From: Chris Mason Date: Wed, 1 Feb 2006 11:06:48 +0000 (-0800) Subject: [PATCH] reiserfs: zero b_private when allocating buffer heads X-Git-Tag: v2.6.16-rc2~22 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=fc5cd582e9c934ddaf6f310179488932cd154794;p=~emulex%2Finfiniband.git [PATCH] reiserfs: zero b_private when allocating buffer heads 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/buffer.c b/fs/buffer.c index 8bcbac87a28..5e4a90ee103 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1022,6 +1022,7 @@ try_again: bh->b_state = 0; atomic_set(&bh->b_count, 0); + bh->b_private = NULL; bh->b_size = size; /* Link the buffer to its page */