]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use btrfs_put_fs_root to free roots always
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:55 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:32 +0000 (17:01 +0100)
commitfcf07d968bf3c7343dbde0232693e6210ac572c7
treeab31121667e046139480130429cee05d017e5e86
parent64935d1a3d8660c6774823cb3f3f9013d2ac3484
btrfs: use btrfs_put_fs_root to free roots always

If we are going to track leaked roots we need to free them all the same
way, so don't kfree() roots directly, use btrfs_put_fs_root.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
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/disk-io.c
fs/btrfs/free-space-tree.c
fs/btrfs/qgroup.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tree-log.c