]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: btrfs: Implement btrfs_lookup_path()
authorQu Wenruo <wqu@suse.com>
Wed, 24 Jun 2020 16:03:05 +0000 (18:03 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Sep 2020 00:57:27 +0000 (20:57 -0400)
commitc921aa20c3682456b59574be8cf3df589d909950
treedd08412b23cc1f74712b4d48d39da91f6e4557e2
parent5bdcb37495d594c352221f582e31a0ec04b7d58b
fs: btrfs: Implement btrfs_lookup_path()

This is the extent buffer based path lookup routine.

To implement this, btrfs_lookup_dir_item() is crossported from
btrfs-progs, and implements btrfs_lookup_path() from scratch.

Unlike the existing __btrfs_lookup_path(), since btrfs_read_fs_root()
will check whether a root is a orphan at read time, there is no need to
check root backref, this makes the code a little easier to read.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
fs/btrfs/ctree.h
fs/btrfs/dir-item.c
fs/btrfs/inode.c