diff options
| author | Filipe Manana <[email protected]> | 2021-10-01 12:52:30 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-10-07 20:06:22 +0000 |
| commit | 77a5b9e3d14cbce49ceed2766b2003c034c066dc (patch) | |
| tree | c9640cd81af3de437544a74aca64451c6273fdbd /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | btrfs: update refs for any root except tree log roots (diff) | |
| download | kernel-77a5b9e3d14cbce49ceed2766b2003c034c066dc.tar.gz kernel-77a5b9e3d14cbce49ceed2766b2003c034c066dc.zip | |
btrfs: deal with errors when checking if a dir entry exists during log replay
Currently inode_in_dir() ignores errors returned from
btrfs_lookup_dir_index_item() and from btrfs_lookup_dir_item(), treating
any errors as if the directory entry does not exists in the fs/subvolume
tree, which is obviously not correct, as we can get errors such as -EIO
when reading extent buffers while searching the fs/subvolume's tree.
Fix that by making inode_in_dir() return the errors and making its only
caller, add_inode_ref(), deal with returned errors as well.
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
