Skip to content
Commit 5708b959 authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 18f16f7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment