aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-02-09 17:40:24 -0500
committerJens Axboe <axboe@kernel.dk>2019-02-09 17:40:24 -0500
commitd11a3998985b351aaab6bbdc23bc884bd5e815c8 (patch)
tree92340a95a76fe5e482824a5c5a4698f65a45e066 /include/linux/blkdev.h
parentdc7292a5bcb4c878b076fca2ac3fc22f81b8f8df (diff)
block: kill QUEUE_FLAG_FLUSH_NQ
We have various helpers for setting/clearing this flag, and also a helper to check if the queue supports queueable flushes or not. But nobody uses them anymore, kill it with fire. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 338604dff7d0..24ccab51085f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -592,7 +592,6 @@ struct request_queue {
592#define QUEUE_FLAG_POLL 19 /* IO polling enabled if set */ 592#define QUEUE_FLAG_POLL 19 /* IO polling enabled if set */
593#define QUEUE_FLAG_WC 20 /* Write back caching */ 593#define QUEUE_FLAG_WC 20 /* Write back caching */
594#define QUEUE_FLAG_FUA 21 /* device supports FUA writes */ 594#define QUEUE_FLAG_FUA 21 /* device supports FUA writes */
595#define QUEUE_FLAG_FLUSH_NQ 22 /* flush not queueuable */
596#define QUEUE_FLAG_DAX 23 /* device supports DAX */ 595#define QUEUE_FLAG_DAX 23 /* device supports DAX */
597#define QUEUE_FLAG_STATS 24 /* track IO start and completion times */ 596#define QUEUE_FLAG_STATS 24 /* track IO start and completion times */
598#define QUEUE_FLAG_POLL_STATS 25 /* collecting stats for hybrid polling */ 597#define QUEUE_FLAG_POLL_STATS 25 /* collecting stats for hybrid polling */
@@ -1069,7 +1068,6 @@ extern void blk_queue_virt_boundary(struct request_queue *, unsigned long);
1069extern void blk_queue_dma_alignment(struct request_queue *, int); 1068extern void blk_queue_dma_alignment(struct request_queue *, int);
1070extern void blk_queue_update_dma_alignment(struct request_queue *, int); 1069extern void blk_queue_update_dma_alignment(struct request_queue *, int);
1071extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); 1070extern void blk_queue_rq_timeout(struct request_queue *, unsigned int);
1072extern void blk_queue_flush_queueable(struct request_queue *q, bool queueable);
1073extern void blk_queue_write_cache(struct request_queue *q, bool enabled, bool fua); 1071extern void blk_queue_write_cache(struct request_queue *q, bool enabled, bool fua);
1074 1072
1075/* 1073/*
@@ -1446,11 +1444,6 @@ static inline unsigned int block_size(struct block_device *bdev)
1446 return bdev->bd_block_size; 1444 return bdev->bd_block_size;
1447} 1445}
1448 1446
1449static inline bool queue_flush_queueable(struct request_queue *q)
1450{
1451 return !test_bit(QUEUE_FLAG_FLUSH_NQ, &q->queue_flags);
1452}
1453
1454typedef struct {struct page *v;} Sector; 1447typedef struct {struct page *v;} Sector;
1455 1448
1456unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *); 1449unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *);