From: Nathan Scott Date: Mon, 16 Jan 2006 22:02:07 +0000 (+1100) Subject: Make alloc_page_buffers() initialise buffer_heads using init_buffer(), X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01ffe339e3a0ba5ecbeb2b3b5abac7b3ef90f374;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Make alloc_page_buffers() initialise buffer_heads using init_buffer(), 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 --- diff --git a/fs/buffer.c b/fs/buffer.c index 7cdf48a9a501..3dc712f29d2d 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -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; /*