]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add a alloc_reserved_extent helper
authorJosef Bacik <josef@toxicpanda.com>
Wed, 23 Feb 2022 19:06:44 +0000 (14:06 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2022 12:13:53 +0000 (13:13 +0100)
commit4faf01054253b5994a1bae40bdec2783874ae262
tree21b1e32041dff38b10246974f908227b54fd8e0e
parent9320a32e63f7298fccab6574cdf6d7db8c900355
btrfs: add a alloc_reserved_extent helper

We duplicate this logic for both data and metadata, at this point we've
already done our type specific extent root operations, this is just
doing the accounting and removing the space from the free space tree.
Extract this common logic out into a helper.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c