aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 49ae07951d55..0146e0fecf1a 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -723,6 +723,7 @@ struct rq_map_data {
723 int nr_entries; 723 int nr_entries;
724 unsigned long offset; 724 unsigned long offset;
725 int null_mapped; 725 int null_mapped;
726 int from_user;
726}; 727};
727 728
728struct req_iterator { 729struct req_iterator {
@@ -779,18 +780,18 @@ extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t,
779 * congested queues, and wake up anyone who was waiting for requests to be 780 * congested queues, and wake up anyone who was waiting for requests to be
780 * put back. 781 * put back.
781 */ 782 */
782static inline void blk_clear_queue_congested(struct request_queue *q, int rw) 783static inline void blk_clear_queue_congested(struct request_queue *q, int sync)
783{ 784{
784 clear_bdi_congested(&q->backing_dev_info, rw); 785 clear_bdi_congested(&q->backing_dev_info, sync);
785} 786}
786 787
787/* 788/*
788 * A queue has just entered congestion. Flag that in the queue's VM-visible 789 * A queue has just entered congestion. Flag that in the queue's VM-visible
789 * state flags and increment the global gounter of congested queues. 790 * state flags and increment the global gounter of congested queues.
790 */ 791 */
791static inline void blk_set_queue_congested(struct request_queue *q, int rw) 792static inline void blk_set_queue_congested(struct request_queue *q, int sync)
792{ 793{
793 set_bdi_congested(&q->backing_dev_info, rw); 794 set_bdi_congested(&q->backing_dev_info, sync);
794} 795}
795 796
796extern void blk_start_queue(struct request_queue *q); 797extern void blk_start_queue(struct request_queue *q);