mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
Btrfs: move get root out of btrfs_search_slot to a helper
It's good to have a helper instead of having all get-root details open-coded. The new helper locks (if necessary) and sets root node of the path. Also invert the checks to make the code flow easier to read. There is no functional change in this commit. Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e6a1d6fd27
commit
1fc28d8e2e
1 changed files with 65 additions and 45 deletions
110
fs/btrfs/ctree.c
110
fs/btrfs/ctree.c
Loading…
Add table
Add a link
Reference in a new issue