aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-08-18 05:29:22 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-09-10 06:35:40 -0400
commit8c5553678237b7121355108e03c36086037d8975 (patch)
tree7ecbc41837bf2dac6010230839e3312d6d33dd35 /include/linux/blkdev.h
parent31725e65c7214b52b607eba705fc4f306be4d5a5 (diff)
block: remove the BLKDEV_IFL_BARRIER flag
Remove support for barriers on discards, which is unused now. Also remove the DISCARD_NOBARRIER I/O type in favour of just setting the rw flags up locally in blkdev_issue_discard. tj: Also remove DISCARD_SECURE and use REQ_SECURE directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 6b305eb4a343..cfcb3a610605 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -869,11 +869,9 @@ static inline struct request *blk_map_queue_find_tag(struct blk_queue_tag *bqt,
869} 869}
870enum{ 870enum{
871 BLKDEV_WAIT, /* wait for completion */ 871 BLKDEV_WAIT, /* wait for completion */
872 BLKDEV_BARRIER, /* issue request with barrier */
873 BLKDEV_SECURE, /* secure discard */ 872 BLKDEV_SECURE, /* secure discard */
874}; 873};
875#define BLKDEV_IFL_WAIT (1 << BLKDEV_WAIT) 874#define BLKDEV_IFL_WAIT (1 << BLKDEV_WAIT)
876#define BLKDEV_IFL_BARRIER (1 << BLKDEV_BARRIER)
877#define BLKDEV_IFL_SECURE (1 << BLKDEV_SECURE) 875#define BLKDEV_IFL_SECURE (1 << BLKDEV_SECURE)
878extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *, 876extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *,
879 unsigned long); 877 unsigned long);