diff options
author | Naohiro Aota <[email protected]> | 2023-06-06 14:36:35 +0900 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-06-19 13:59:37 +0200 |
commit | 93463ff7b54626f8276c0bd3d3f968fbf8d5d380 (patch) | |
tree | 7ff7484aa3808d09082d3feae96b85fd738d6a07 /scripts/generate_rust_analyzer.py | |
parent | a9f189716cf15913c453299d72f69c51a9b0f86b (diff) |
btrfs: bail out reclaim process if filesystem is read-only
When a filesystem is read-only, we cannot reclaim a block group as it
cannot rewrite the data. Just bail out in that case.
Note that it can drop block groups in this case. As we did
sb_start_write(), read-only filesystem means we got a fatal error and
forced read-only. There is no chance to reclaim them again.
Fixes: 18bb8bbf13c1 ("btrfs: zoned: automatically reclaim zones")
CC: [email protected] # 5.15+
Reviewed-by: Filipe Manana <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions