From: Liu Bo Date: Thu, 26 Jan 2012 20:01:12 +0000 (-0500) Subject: Btrfs: do not defrag a file partially X-Git-Tag: v3.3-rc2~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ec31b548a17f773ab6289e795ed3a6820e8b56e;p=pandora-kernel.git Btrfs: do not defrag a file partially xfstests 218 complains that btrfs defrags a file partially: After: 1 Write backwards sync, but contiguous - should defrag to 1 extent Before: 10 -After: 1 +After: 2 To fix this, we need to set max_to_defrag count properly. Signed-off-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed