From: Kent Overstreet Date: Thu, 27 Jun 2019 15:37:46 +0000 (-0400) Subject: bcachefs: Delete a spurious assertion X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=09bf409b4689d0297da2cc5c95106ef89fa7cfb7;p=linux.git bcachefs: Delete a spurious assertion bch_write_op->written used to be a u16, but it's not so the assertion isn't needed anymore - and 5.1 can send larger bios. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index 9cd9bbc5cce4c..8a090b0d9b03e 100644 --- a/fs/bcachefs/io.c +++ b/fs/bcachefs/io.c @@ -966,7 +966,6 @@ void bch2_write(struct closure *cl) BUG_ON(!op->nr_replicas); BUG_ON(!op->write_point.v); BUG_ON(!bkey_cmp(op->pos, POS_MAX)); - BUG_ON(bio_sectors(&op->wbio.bio) > U16_MAX); op->start_time = local_clock();