Skip to content
Commit a43a2111 authored by Andrew Mahone's avatar Andrew Mahone Committed by Chris Mason
Browse files

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: default avatarAndrew Mahone <andrew.mahone@gmail.com>
parent e4b50e14
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment