From: Chris Mason Date: Thu, 25 Oct 2007 19:43:18 +0000 (-0400) Subject: Btrfs: Tune the automatic defrag code X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~436 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5708b9591617486bf1aa5b1a97f2c0549ec87933;p=pandora-kernel.git Btrfs: Tune the automatic defrag code 1) Forced defrag wasn't working properly (btrfsctl -d) because some cache only checks were incorrect. 2) Defrag only the leaves unless in forced defrag mode. 3) Don't use complex logic to figure out if a leaf is needs defrag Signed-off-by: Chris Mason --- Reading git-diff-tree failed