diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-02-08 19:48:14 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-02-18 15:25:54 +0100 |
| commit | 7b54e08f2ef8f94d7e3959dde3694c4c34fa7701 (patch) | |
| tree | ce43482cb8220250e009e27278cee9fd20cc7055 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 29e525665a77a70ea8f19310e96b1b1472b07fc9 (diff) | |
btrfs: fix lost error return in btrfs_find_orphan_roots()
If the call to btrfs_get_fs_root() returns an error different from -ENOENT
we break out of the loop and then return 0, losing the error. Fix this
by returning the error instead of breaking from the loop.
Reported-by: Chris Mason <clm@meta.com>
Link: https://lore.kernel.org/linux-btrfs/20260208185321.1128472-1-clm@meta.com/
Fixes: 8670a25ecb2f ("btrfs: use single return variable in btrfs_find_orphan_roots()")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
