From: Kent Overstreet Date: Wed, 8 Dec 2021 18:31:36 +0000 (-0500) Subject: bcachefs: Convert a BUG_ON() to a warning X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f54788cc8c79cad2ac8016d1c4a8a1373a4d7707;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index d5320719dc958..2f144fa3298de 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