Loading fs/bcachefs/fs-io.c +3 −3 Original line number Diff line number Diff line Loading @@ -1247,7 +1247,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: */ WARN_ON(io->op.i_sectors_delta > 0); WARN_ON_ONCE(io->op.i_sectors_delta > 0); /* * (error (due to going RO) halfway through a page can screw that up Loading Loading @@ -1434,7 +1434,7 @@ static int __bch2_writepage(struct folio *folio, sectors << 9, offset << 9)); /* Check for writing past i_size: */ WARN_ON((bio_end_sector(&w->io->op.wbio.bio) << 9) > WARN_ON_ONCE((bio_end_sector(&w->io->op.wbio.bio) << 9) > round_up(i_size, block_bytes(c))); w->io->op.res.sectors += reserved_sectors; Loading Loading
fs/bcachefs/fs-io.c +3 −3 Original line number Diff line number Diff line Loading @@ -1247,7 +1247,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: */ WARN_ON(io->op.i_sectors_delta > 0); WARN_ON_ONCE(io->op.i_sectors_delta > 0); /* * (error (due to going RO) halfway through a page can screw that up Loading Loading @@ -1434,7 +1434,7 @@ static int __bch2_writepage(struct folio *folio, sectors << 9, offset << 9)); /* Check for writing past i_size: */ WARN_ON((bio_end_sector(&w->io->op.wbio.bio) << 9) > WARN_ON_ONCE((bio_end_sector(&w->io->op.wbio.bio) << 9) > round_up(i_size, block_bytes(c))); w->io->op.res.sectors += reserved_sectors; Loading