]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 09:23:01 +0000 (11:23 +0200)
commita262f5711aba89acaac59b1f8bb9629f3453da36
tree44453f6d119a567ccd5abf7306ac39d2a8d17730
parent00c93450db581d5c83f3af9a6c169270e9cd863e
btrfs: check for error when looking up inode during dir entry replay

commit cfd312695b71df04c3a2597859ff12c470d1e2e4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/tree-log.c