2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 17:23:55 +08:00

Btrfs: unplug all devices in the unplug call back

For larger multi-device filesystems, there was logic to limit the
number of devices unplugged to just the page that was sent to our sync_page
function.

But, the code wasn't always unplugging the right device.  Since this was
just an optimization, disable it for now.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason 2008-11-18 10:31:22 -05:00
parent b4eec2ca11
commit 9f0ba5bd91

View File

@ -1214,7 +1214,7 @@ void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
u64 offset; u64 offset;
/* the generic O_DIRECT read code does this */ /* the generic O_DIRECT read code does this */
if (!page) { if (1 || !page) {
__unplug_io_fn(bdi, page); __unplug_io_fn(bdi, page);
return; return;
} }