Skip to content
Commit 3083ee2e authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

Btrfs: introduce free_extent_buffer_stale



Because btrfs cow's we can end up with extent buffers that are no longer
necessary just sitting around in memory.  So instead of evicting these pages, we
could end up evicting things we actually care about.  Thus we have
free_extent_buffer_stale for use when we are freeing tree blocks.  This will
make it so that the ref for the eb being in the radix tree is dropped as soon as
possible and then is freed when the refcount hits 0 instead of waiting to be
released by releasepage.  Thanks,

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 115391d2
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