diff options
| author | Josef Bacik <[email protected]> | 2021-10-05 20:35:25 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-10-26 17:08:05 +0000 |
| commit | 849615394515cce02add9c5b931179162e251aab (patch) | |
| tree | 4b068cdce0d0cc751bb3a157b763919487c2dcf0 /fs/btrfs/dev-replace.c | |
| parent | btrfs: change error handling for btrfs_delete_*_in_log (diff) | |
| download | kernel-849615394515cce02add9c5b931179162e251aab.tar.gz kernel-849615394515cce02add9c5b931179162e251aab.zip | |
btrfs: add a BTRFS_FS_ERROR helper
We have a few flags that are inconsistently used to describe the fs in
different states of failure. As of 5963ffcaf383 ("btrfs: always abort
the transaction if we abort a trans handle") we will always set
BTRFS_FS_STATE_ERROR if we abort, so we don't have to check both ABORTED
and ERROR to see if things have gone wrong. Add a helper to check
BTRFS_FS_STATE_ERROR and then convert all checkers of FS_STATE_ERROR to
use the helper.
The TRANS_ABORTED bit check was added in af7227338135 ("Btrfs: clean up
resources during umount after trans is aborted") but is not actually
specific.
Reviewed-by: Anand Jain <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
