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

Btrfs: load free space cache if it exists



This patch actually loads the free space cache if it exists.  The only thing
that really changes here is that we need to cache the block group if we're going
to remove an extent from it.  Previously we did not do this since the caching
kthread would pick it up.  With the on disk cache we don't have this luxury so
we need to make sure we read the on disk cache in first, and then remove the
extent, that way when the extent is unpinned the free space is added to the
block group.  This has been tested with all sorts of things.

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