diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-11-18 10:31:22 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-18 10:31:22 -0500 |
commit | 9f0ba5bd91d42706ba78f97ec638c6a821db1c5e (patch) | |
tree | 89e6c8e6d6135091ee8f1d072dc5f62506ff67d1 /fs/btrfs | |
parent | b4eec2ca1167bae46295aeb66abd15fd52387845 (diff) |
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index e18250a6fd2d..0e8d31274c92 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1214,7 +1214,7 @@ void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page) | |||
1214 | u64 offset; | 1214 | u64 offset; |
1215 | 1215 | ||
1216 | /* the generic O_DIRECT read code does this */ | 1216 | /* the generic O_DIRECT read code does this */ |
1217 | if (!page) { | 1217 | if (1 || !page) { |
1218 | __unplug_io_fn(bdi, page); | 1218 | __unplug_io_fn(bdi, page); |
1219 | return; | 1219 | return; |
1220 | } | 1220 | } |