提交 01ffe339 编写于 作者: N Nathan Scott

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: NNathan Scott <nathans@sgi.com>
上级 4a8e4a27
......@@ -1027,7 +1027,7 @@ struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
/* Link the buffer to its page */
set_bh_page(bh, page, offset);
bh->b_end_io = NULL;
init_buffer(bh, NULL, NULL);
}
return head;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册