]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Make alloc_page_buffers() initialise buffer_heads using init_buffer(),
authorNathan Scott <nathans@bruce>
Mon, 16 Jan 2006 22:02:07 +0000 (09:02 +1100)
committerNathan Scott <nathans@bruce>
Mon, 16 Jan 2006 22:02:07 +0000 (09:02 +1100)
like other routines here, to ensure buffers are correctly initialised
with respect to b_private/b_end_io.  Fixes an odd interaction between
XFS and reiserfs.

Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/buffer.c

index 7cdf48a9a50105c4a074d53f807077c398f4fdb5..3dc712f29d2d60fe4bdac9d1e84a20332384fef3 100644 (file)
@@ -1027,7 +1027,7 @@ try_again:
                /* Link the buffer to its page */
                set_bh_page(bh, page, offset);
 
-               bh->b_end_io = NULL;
+               init_buffer(bh, NULL, NULL);
        }
        return head;
 /*