summaryrefslogtreecommitdiff
path: root/fs/bcachefs/fs-io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-12-08 21:31:36 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:18 +0300
commitf54788cc8c79cad2ac8016d1c4a8a1373a4d7707 (patch)
tree4fbbbf6ff8871b0d7953c73f2a7c02139ff899c1 /fs/bcachefs/fs-io.c
parent94a3e1a6c1bd441b58972ee0216593fc0b09ee75 (diff)
downloadlinux-f54788cc8c79cad2ac8016d1c4a8a1373a4d7707.tar.xz
bcachefs: Convert a BUG_ON() to a warning
A user reported hitting this assertion, and we can't reproduce it yet, but it shouldn't be fatal - so convert it to a warning. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/fs-io.c')
-rw-r--r--fs/bcachefs/fs-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c
index d5320719dc95..2f144fa3298d 100644
--- a/fs/bcachefs/fs-io.c
+++ b/fs/bcachefs/fs-io.c
@@ -1249,7 +1249,7 @@ static void bch2_writepage_io_done(struct bch_write_op *op)
* racing with fallocate can cause us to add fewer sectors than
* expected - but we shouldn't add more sectors than expected:
*/
- BUG_ON(io->op.i_sectors_delta > 0);
+ WARN_ON(io->op.i_sectors_delta > 0);
/*
* (error (due to going RO) halfway through a page can screw that up