commit | 5708b9591617486bf1aa5b1a97f2c0549ec87933 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Thu Oct 25 15:43:18 2007 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:03:57 2008 -0400 |
tree | e2d5f219c090ecda4bc9265027b41be2c70a57ad | |
parent | 18f16f7ba62a01c29e09b40ac6ad6d92a8955859 [diff] |
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>