diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-02-04 09:12:46 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-04 09:12:46 -0500 |
commit | 7b78c170dc4f538cc7ee66f47b3aac3f3974a36c (patch) | |
tree | e2301fba4de0f3a04cf4b691f63e2bdf1e8c64d2 /fs/btrfs/inode-item.c | |
parent | 12f4daccfc3732280debba8f9ba49720372de831 (diff) |
Btrfs: Only prep for btree deletion balances when nodes are mostly empty
Whenever an item deletion is done, we need to balance all the nodes
in the tree to make sure we don't end up with an empty node if a pointer
is deleted. This balance prep happens from the root of the tree down
so we can drop our locks as we go.
reada_for_balance was triggering read-ahead on neighboring nodes even
when no balancing was required. This adds an extra check to avoid
calling balance_level() and avoid reada_for_balance() when a balance
won't be required.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode-item.c')
0 files changed, 0 insertions, 0 deletions