aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-06-27 11:37:46 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:23 -0400
commit09bf409b4689d0297da2cc5c95106ef89fa7cfb7 (patch)
tree5c4a0d1a7557d99d7dea04851b75ac8e9a25711c
parent2a488aaac1d4a7f5b48bce687adf430d24e0beb5 (diff)
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 <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/io.c1
1 files changed, 0 insertions, 1 deletions
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();