From: Chris Mason Date: Mon, 10 Nov 2008 18:08:31 +0000 (-0500) Subject: Btrfs: tune btrfs unplug functions for a small number of devices X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=240d5d482b69415b92ffce4b8dfca10799c9890b;p=pandora-kernel.git 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 --- Reading git-diff-tree failed