]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: Convert a BUG_ON() to a warning
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 8 Dec 2021 18:31:36 +0000 (13:31 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
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>
fs/bcachefs/fs-io.c

index d5320719dc958267bea36e07b779b7bad6a5ad51..2f144fa3298dee58ec511232d7cb8693dbbb9b46 100644 (file)
@@ -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