]> 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)
commit3466670558d70b30238bbef5fa0267bc6301b8db
tree21b1e32041dff38b10246974f908227b54fd8e0e
parentb3c958a3694eb8280de9ee3b241ced03bce5ad5f
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