aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-09-03 05:56:16 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-09-10 06:35:36 -0400
commitdd4c133f387c48f526022860ad70354637a80f4c (patch)
tree7b741150d37d327b69e483468278d9de3a43a4e1 /include/linux/blkdev.h
parent8839a0e055d9abd6c011d533373a8dd266cad011 (diff)
block: rename barrier/ordered to flush
With ordering requirements dropped, barrier and ordered are misnomers. Now all block layer does is sequencing FLUSH and FUA. Rename them to flush. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 20a3710a481b..1cd83ec077db 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -357,13 +357,13 @@ struct request_queue
357 /* 357 /*
358 * for flush operations 358 * for flush operations
359 */ 359 */
360 unsigned int ordered, next_ordered;
360 unsigned int flush_flags; 361 unsigned int flush_flags;
361 362 unsigned int flush_seq;
362 unsigned int ordered, next_ordered, ordseq; 363 int flush_err;
363 int orderr; 364 struct request flush_rq;
364 struct request bar_rq; 365 struct request *orig_flush_rq;
365 struct request *orig_bar_rq; 366 struct list_head pending_flushes;
366 struct list_head pending_barriers;
367 367
368 struct mutex sysfs_lock; 368 struct mutex sysfs_lock;
369 369
@@ -490,13 +490,13 @@ enum {
490 QUEUE_ORDERED_DO_FUA, 490 QUEUE_ORDERED_DO_FUA,
491 491
492 /* 492 /*
493 * Ordered operation sequence 493 * FLUSH/FUA sequences.
494 */ 494 */
495 QUEUE_ORDSEQ_STARTED = (1 << 0), /* flushing in progress */ 495 QUEUE_FSEQ_STARTED = (1 << 0), /* flushing in progress */
496 QUEUE_ORDSEQ_PREFLUSH = (1 << 1), /* pre-flushing in progress */ 496 QUEUE_FSEQ_PREFLUSH = (1 << 1), /* pre-flushing in progress */
497 QUEUE_ORDSEQ_BAR = (1 << 2), /* barrier write in progress */ 497 QUEUE_FSEQ_DATA = (1 << 2), /* data write in progress */
498 QUEUE_ORDSEQ_POSTFLUSH = (1 << 3), /* post-flushing in progress */ 498 QUEUE_FSEQ_POSTFLUSH = (1 << 3), /* post-flushing in progress */
499 QUEUE_ORDSEQ_DONE = (1 << 4), 499 QUEUE_FSEQ_DONE = (1 << 4),
500}; 500};
501 501
502#define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags) 502#define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags)