block: Consolidate phys_segment and hw_segment limits
[deliverable/linux.git] / drivers / block / pktcdvd.c
index 6e1daa24da2fea7bbec0463a84bdb3a2037b2918..b72935b8f2036e3ea954b5560fe88fd3875f5d96 100644 (file)
@@ -950,14 +950,14 @@ static void pkt_iosched_process_queue(struct pktcdvd_device *pd)
 static int pkt_set_segment_merging(struct pktcdvd_device *pd, struct request_queue *q)
 {
        if ((pd->settings.size << 9) / CD_FRAMESIZE
-           <= queue_max_phys_segments(q)) {
+           <= queue_max_segments(q)) {
                /*
                 * The cdrom device can handle one segment/frame
                 */
                clear_bit(PACKET_MERGE_SEGS, &pd->flags);
                return 0;
        } else if ((pd->settings.size << 9) / PAGE_SIZE
-                  <= queue_max_phys_segments(q)) {
+                  <= queue_max_segments(q)) {
                /*
                 * We can handle this case at the expense of some extra memory
                 * copies during write operations
This page took 0.029032 seconds and 5 git commands to generate.