diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-09-30 11:52:32 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-12 19:16:23 +0200 |
| commit | 3edda5249553b708c378a0d766018976315c63ad (patch) | |
| tree | bd01349e779c4ce84acd632dc9996670191da581 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d1d74665ab9a8971d42177ca865cfbe2897c1fc7 (diff) | |
| download | linux-3edda5249553b708c378a0d766018976315c63ad.tar.gz linux-3edda5249553b708c378a0d766018976315c63ad.zip | |
btrfs: fix duplicated code in fs state string in logged messages
We are using the code 'E' when the fs is in an error state (transaction
aborted) and when it's in the emergency shutdown state, which is confusing
and not intentional. Fix this by using an unused code such as 'H' for the
emergency shutdown state and add a comment over the fs_state_chars array
to warn to not use 'E' as its use is not defined in the array but instead
in the function btrfs_state_to_string(), since the fs state error is not
defined as a bit but as an error code in fs_info->fs_error.
Fixes: 9b2839451dfc ("btrfs: introduce a new shutdown state")
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/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
