mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 15:07:13 -04:00
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>
This commit is contained in:
committed by
Kent Overstreet
parent
94a3e1a6c1
commit
f54788cc8c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user