diff options
| author | Filipe Manana <[email protected]> | 2021-10-01 12:52:32 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-10-07 20:06:30 +0000 |
| commit | 52db77791fe24538c8aa2a183248399715f6b380 (patch) | |
| tree | eb7e248ad88698709bec79cc3762d6c29b63ccac /scripts/gcc-plugins/sancov_plugin.c | |
| parent | btrfs: deal with errors when replaying dir entry during log replay (diff) | |
| download | kernel-52db77791fe24538c8aa2a183248399715f6b380.tar.gz kernel-52db77791fe24538c8aa2a183248399715f6b380.zip | |
btrfs: deal with errors when adding inode reference during log replay
At __inode_add_ref(), we treating any error returned from
btrfs_lookup_dir_item() or from btrfs_lookup_dir_index_item() as meaning
that there is no existing directory entry in the fs/subvolume tree.
This is not correct since we can get errors such as, for example, -EIO
when reading extent buffers while searching the fs/subvolume's btree.
So fix that and return the error to the caller when it is not -ENOENT.
CC: [email protected] # 4.14+
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/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
