From 09bf409b4689d0297da2cc5c95106ef89fa7cfb7 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 27 Jun 2019 11:37:46 -0400 Subject: [PATCH] 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 --- fs/bcachefs/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index 9cd9bbc5cce4..8a090b0d9b03 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(); -- 2.25.1