Skip to content

Commit

Permalink
Make alloc_page_buffers() initialise buffer_heads using init_buffer(),
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nathan Scott committed Jan 16, 2006
1 parent 4a8e4a2 commit 01ffe33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down

0 comments on commit 01ffe33

Please sign in to comment.