diff options
| author | Filipe Manana <[email protected]> | 2025-06-18 15:57:07 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-06-27 17:56:35 +0000 |
| commit | 6561a40ceced9082f50c374a22d5966cf9fc5f5c (patch) | |
| tree | e844161b663c7398b96fa5c0e4a38f3c04dff63d /tools/perf/scripts/python/task-analyzer.py | |
| parent | btrfs: fix failure to rebuild free space tree using multiple transactions (diff) | |
| download | kernel-6561a40ceced9082f50c374a22d5966cf9fc5f5c.tar.gz kernel-6561a40ceced9082f50c374a22d5966cf9fc5f5c.zip | |
btrfs: fix missing error handling when searching for inode refs during log replay
During log replay, at __add_inode_ref(), when we are searching for inode
ref keys we totally ignore if btrfs_search_slot() returns an error. This
may make a log replay succeed when there was an actual error and leave
some metadata inconsistency in a subvolume tree. Fix this by checking if
an error was returned from btrfs_search_slot() and if so, return it to
the caller.
Fixes: e02119d5a7b4 ("Btrfs: Add a write ahead tree log to optimize synchronous operations")
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
