Explorar o código

[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 <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Chris Mason %!s(int64=19) %!d(string=hai) anos
pai
achega
fc5cd582e9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      fs/buffer.c

+ 1 - 0
fs/buffer.c

@@ -1022,6 +1022,7 @@ try_again:
 
 
 		bh->b_state = 0;
 		bh->b_state = 0;
 		atomic_set(&bh->b_count, 0);
 		atomic_set(&bh->b_count, 0);
+		bh->b_private = NULL;
 		bh->b_size = size;
 		bh->b_size = size;
 
 
 		/* Link the buffer to its page */
 		/* Link the buffer to its page */