diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-12 16:11:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:47 -0400 |
commit | 5f659376fc1b9ad23b00a35242179b8961e0bc2d (patch) | |
tree | 486fa760d2862e4a809ef478a63c0094be88b683 /fs/bcachefs/io.c | |
parent | ef0732861a3af5bd1c5b08b6f64ca5b2cbee04bc (diff) | |
download | lwn-5f659376fc1b9ad23b00a35242179b8961e0bc2d.tar.gz lwn-5f659376fc1b9ad23b00a35242179b8961e0bc2d.zip |
bcachefs: Suppress -EROFS messages when shutting down
This isn't actually an error condition, this just indicates a normal
shutdown - no reason for these to be in the log.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.c')
-rw-r--r-- | fs/bcachefs/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index 491fad4dfb28..27265ba35fac 100644 --- a/fs/bcachefs/io.c +++ b/fs/bcachefs/io.c @@ -675,15 +675,17 @@ static void __bch2_write_index(struct bch_write_op *op) op->written += sectors_start - keylist_sectors(keys); - if (ret) { + if (ret && !bch2_err_matches(ret, EROFS)) { struct bkey_i *k = bch2_keylist_front(&op->insert_keys); bch_err_inum_offset_ratelimited(c, k->k.p.inode, k->k.p.offset << 9, "write error while doing btree update: %s", bch2_err_str(ret)); - goto err; } + + if (ret) + goto err; } out: /* If some a bucket wasn't written, we can't erasure code it: */ |