]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: ignore unfragmented file checks in defrag when compression enabled - rebased
authorAndrew Mahone <andrew.mahone@gmail.com>
Wed, 20 Jun 2012 01:08:32 +0000 (21:08 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 19:41:39 +0000 (15:41 -0400)
commit304bde38aeee2accc1878461444fb976faa631cd
tree6dccfda943dda491c379ef14bcd7f7a01306f3b5
parentcc4771bc783cb4d8e4e23d3ad427a8bf0e167b4d
btrfs: ignore unfragmented file checks in defrag when compression enabled - rebased

Rebased on btrfs-next and retested.

Inform should_defrag_range if BTRFS_DEFRAG_RANGE_COMPRESS is set. If so, skip
checks for adjacent extents and extent size when deciding whether to defrag,
as these can prevent an uncompressed and unfragmented file from being
compressed as requested.

Signed-off-by: Andrew Mahone <andrew.mahone@gmail.com>
fs/btrfs/ioctl.c