Liu Bo 7ec31b548a 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 <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2012-01-26 15:01:12 -05:00
..
2012-01-04 16:26:38 +01:00
2011-12-22 16:22:27 +01:00
2012-01-16 15:29:43 -05:00
2011-07-26 16:49:47 -07:00
2012-01-16 15:38:24 -05:00
2012-01-16 15:29:43 -05:00
2012-01-26 15:01:12 -05:00
2012-01-16 22:04:49 +02:00
2011-10-20 18:10:50 +02:00
2011-06-17 14:54:18 -04:00
2012-01-16 15:29:43 -05:00
2011-05-28 07:00:39 -04:00
2012-01-16 15:38:24 -05:00