bcachefs: Fix a spurious warning
Fixes fstests generic/648 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
353448f3ea
commit
80fe580c8d
@ -1428,7 +1428,8 @@ do_io:
|
||||
|
||||
/* Check for writing past i_size: */
|
||||
WARN_ON_ONCE((bio_end_sector(&w->io->op.wbio.bio) << 9) >
|
||||
round_up(i_size, block_bytes(c)));
|
||||
round_up(i_size, block_bytes(c)) &&
|
||||
!test_bit(BCH_FS_EMERGENCY_RO, &c->flags));
|
||||
|
||||
w->io->op.res.sectors += reserved_sectors;
|
||||
w->io->op.i_sectors_delta -= dirty_sectors;
|
||||
|
Loading…
x
Reference in New Issue
Block a user