]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 09:40:13 +0000 (11:40 +0200)
commit0a5cdbad16b9f7db5764c4e98b12c0a7f1b8ff8d
tree79e789e2db3532641c21e3c2c880600df6d89289
parent9f6cf986d5e0f29e28f60c86439f3690a493a3cc
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