Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf8c0c6a authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

block: blk-merge: remove unnecessary check



In this case, 'sectors' can't be zero at all, so remove the check
and let the bio be split.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a2d37968
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -129,9 +129,7 @@ static struct bio *blk_bio_segment_split(struct request_queue *q,
				nsegs++;
				sectors = max_sectors;
			}
			if (sectors)
			goto split;
			/* Make this single bvec as the 1st segment */
		}

		if (bvprvp && blk_queue_cluster(q)) {