diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-21 02:10:28 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-21 02:13:02 -0400 |
commit | 74148a8ee52526c44752f1773365963f18734ac9 (patch) | |
tree | 25ccc19dab308fedcfb3fabdc955ecca2d2dc542 /libbcachefs/fs-io.c | |
parent | e76dbf1abd4472fa26c85f4b30e213d8768ccf64 (diff) |
Update bcachefs sources to 0e705f5944 fixup! bcachefs: Refactor bch2_btree_node_mem_alloc()
Diffstat (limited to 'libbcachefs/fs-io.c')
-rw-r--r-- | libbcachefs/fs-io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/fs-io.c b/libbcachefs/fs-io.c index b05d6e89..051372b8 100644 --- a/libbcachefs/fs-io.c +++ b/libbcachefs/fs-io.c @@ -1287,7 +1287,7 @@ static void bch2_writepage_io_done(struct closure *cl) * 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 @@ -1473,8 +1473,8 @@ do_io: sectors << 9, offset << 9)); /* Check for writing past i_size: */ - WARN_ON((bio_end_sector(&w->io->op.wbio.bio) << 9) > - round_up(i_size, block_bytes(c))); + 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; w->io->op.i_sectors_delta -= dirty_sectors; |