]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: init root block_rsv at init root time
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:44 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:48 +0000 (15:09 +0100)
commit5e656fcd9cccf2b19a653b1c5bd25a623eb98010
treeef15257f8d892415641ad50eb7239dfcb0f9c8a6
parent7ebc94bacbbc2fee5ddaefa5f7b0dbe758309729
btrfs: init root block_rsv at init root time

In the future we're going to have multiple csum and extent root trees,
so init the roots block_rsv at setup_root time based on their root key
objectid.

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/block-rsv.c
fs/btrfs/block-rsv.h
fs/btrfs/disk-io.c