Commit 4e36c118 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] blk_run_page(): we don't trust bh->b_page

We don't trust bh->b_page to point to the right thing across all filesystems,
so revert this bit.
parent 3a1e4697
...@@ -113,7 +113,12 @@ static int bh_wake_function(wait_queue_t *wait, unsigned mode, ...@@ -113,7 +113,12 @@ static int bh_wake_function(wait_queue_t *wait, unsigned mode,
static void sync_buffer(struct buffer_head *bh) static void sync_buffer(struct buffer_head *bh)
{ {
blk_run_page(bh->b_page); struct block_device *bd;
smp_mb();
bd = bh->b_bdev;
if (bd)
blk_run_address_space(bd->bd_inode->i_mapping);
} }
void fastcall __lock_buffer(struct buffer_head *bh) void fastcall __lock_buffer(struct buffer_head *bh)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment