]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: hold a ref on the root in get_subvol_name_from_objectid
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Feb 2020 15:24:26 +0000 (10:24 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:31 +0000 (17:01 +0100)
commit836e4857852aab51837b79a054d0af722120dbae
treee1512a8df8d1426c03fa999d1c0e5c3d989e2d89
parent9754692bbddc379897749e2098773a81ad93fb75
btrfs: hold a ref on the root in get_subvol_name_from_objectid

We lookup the name of a subvol which means we'll cross into different
roots.  Hold a ref while we're doing the look ups in the fs_root we're
searching.

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/super.c