Fork of reMarkable kernel https://github.com/reMarkable/linux
Go to file
Chris Mason 5708b95916 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: Chris Mason <chris.mason@oracle.com>
2008-09-25 11:03:57 -04:00
fs/btrfs Btrfs: Tune the automatic defrag code 2008-09-25 11:03:57 -04:00