diff options
author | Nathan Scott <nathans@bruce> | 2006-01-16 17:02:07 -0500 |
---|---|---|
committer | Nathan Scott <nathans@bruce> | 2006-01-16 17:02:07 -0500 |
commit | 01ffe339e3a0ba5ecbeb2b3b5abac7b3ef90f374 (patch) | |
tree | 7586fb091466772a31d9e46d807b8709d4166ef8 /fs | |
parent | 4a8e4a270b89030bdeb09d2f8cef7cfe9a50e54d (diff) |
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 <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
1027 | /* Link the buffer to its page */ | 1027 | /* Link the buffer to its page */ |
1028 | set_bh_page(bh, page, offset); | 1028 | set_bh_page(bh, page, offset); |
1029 | 1029 | ||
1030 | bh->b_end_io = NULL; | 1030 | init_buffer(bh, NULL, NULL); |
1031 | } | 1031 | } |
1032 | return head; | 1032 | return head; |
1033 | /* | 1033 | /* |