]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: check for error when looking up inode during dir entry replay
authorFilipe Manana <fdmanana@suse.com>
Fri, 1 Oct 2021 12:48:18 +0000 (13:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Oct 2021 20:06:34 +0000 (22:06 +0200)
commit0c3da800cb5d95a9e9aa70f948c1bbb9b2c2822d
tree8fe47fd11c51f33a9b6288c308b9b9ee87731954
parent0b05730125bcfb8bdedc3201604b24f174407bb5
btrfs: check for error when looking up inode during dir entry replay

At replay_one_name(), we are treating any error from btrfs_lookup_inode()
as if the inode does not exists. Fix this by checking for an error and
returning it to the caller.

CC: stable@vger.kernel.org # 4.14+
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c