diff options
| author | Christoph Hellwig <hch@infradead.org> | 2010-08-18 05:29:22 -0400 |
|---|---|---|
| committer | Jens Axboe <jaxboe@fusionio.com> | 2010-09-10 06:35:40 -0400 |
| commit | 8c5553678237b7121355108e03c36086037d8975 (patch) | |
| tree | 7ecbc41837bf2dac6010230839e3312d6d33dd35 /include/linux | |
| parent | 31725e65c7214b52b607eba705fc4f306be4d5a5 (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')
| -rw-r--r-- | include/linux/blkdev.h | 2 | ||||
| -rw-r--r-- | include/linux/fs.h | 8 |
2 files changed, 0 insertions, 10 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 | } |
| 870 | enum{ | 870 | enum{ |
| 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) |
| 878 | extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *, | 876 | extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *, |
| 879 | unsigned long); | 877 | unsigned long); |
diff --git a/include/linux/fs.h b/include/linux/fs.h index d6add69bc170..6b0f6e9993a3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -163,14 +163,6 @@ struct inodes_stat_t { | |||
| 163 | #define WRITE_FLUSH_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_UNPLUG | \ | 163 | #define WRITE_FLUSH_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_UNPLUG | \ |
| 164 | REQ_FLUSH | REQ_FUA) | 164 | REQ_FLUSH | REQ_FUA) |
| 165 | 165 | ||
| 166 | /* | ||
| 167 | * These aren't really reads or writes, they pass down information about | ||
| 168 | * parts of device that are now unused by the file system. | ||
| 169 | */ | ||
| 170 | #define DISCARD_NOBARRIER (WRITE | REQ_DISCARD) | ||
| 171 | #define DISCARD_BARRIER (WRITE | REQ_DISCARD | REQ_HARDBARRIER) | ||
| 172 | #define DISCARD_SECURE (DISCARD_NOBARRIER | REQ_SECURE) | ||
| 173 | |||
| 174 | #define SEL_IN 1 | 166 | #define SEL_IN 1 |
| 175 | #define SEL_OUT 2 | 167 | #define SEL_OUT 2 |
| 176 | #define SEL_EX 4 | 168 | #define SEL_EX 4 |
