diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-11-10 13:08:31 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-10 13:08:31 -0500 |
commit | 240d5d482b69415b92ffce4b8dfca10799c9890b (patch) | |
tree | 16320929e2220a7859d187bf4eda3810d2886bf2 /fs/btrfs/extent-tree.c | |
parent | b47eda8690a10f4fc01eb7b795078fa3fa57149f (diff) |
Btrfs: tune btrfs unplug functions for a small number of devices
When btrfs unplugs, it tries to find the correct device to unplug
via search through the extent_map tree. This avoids unplugging
a device that doesn't need it, but is a waste of time for filesystems
with a small number of devices.
This patch checks the total number of devices before doing the
search.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions