]> 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)
commit66030e0761f80996ec7a015a3f88620d2d4ccd92
tree21b1e32041dff38b10246974f908227b54fd8e0e
parentdaa70f67e036795d50b305a0b095beb73638fd7c
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