]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - block/blk-merge.c
mm/huge_memory.c: don't split THP page when MADV_FREE syscall is called
[karo-tx-linux.git] / block / blk-merge.c
index e73846a3d08a655a63a763d35732106b64ee4797..e01405a3e8b3f51ce0424a844fadb3304bda5e44 100644 (file)
@@ -81,7 +81,7 @@ static struct bio *blk_bio_segment_split(struct request_queue *q,
        struct bio *new = NULL;
 
        bio_for_each_segment(bv, bio, iter) {
-               if (sectors + (bv.bv_len >> 9) > blk_max_size_offset(q, bio->bi_iter.bi_sector))
+               if (sectors + (bv.bv_len >> 9) > queue_max_sectors(q))
                        goto split;
 
                /*