]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add additional parameters to btrfs_init_tree_ref/btrfs_init_data_ref
authorNikolay Borisov <nborisov@suse.com>
Tue, 12 Oct 2021 08:21:35 +0000 (11:21 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commit93a39656fab6e7958ec6c5a2b5f8c9a5a13d7862
tree623c803bfb83b0fb977ab6d218393cb83e052926
parent6b0fd89cf72713fca0f8eacb6d509c103adefd4d
btrfs: add additional parameters to btrfs_init_tree_ref/btrfs_init_data_ref

In order to make 'real_root' used only in ref-verify it's required to
have the necessary context to perform the same checks that this member
is used for. So add 'mod_root' which will contain the root on behalf of
which a delayed ref was created and a 'skip_group' parameter which
will contain callsite-specific override of skip_qgroup.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/tree-log.c