commit
7b6d91daee5cac6402186ff224c3af39d79f4a0e
Author: Christoph Hellwig <hch@lst.de>
Date: Sat Aug 7 18:20:39 2010 +0200
block: unify flags for struct bio and struct request
Follow the following transitions:
bio_rw_flagged(bio, BIO_RW_BARRIER)) ->
(bio->bi_rw & REQ_HARDBARRIER) ->
(bio->bi_rw & REQ_FLUSH)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
* the input queue unless all work queues are empty
* and the stripe cache is inactive.
*/
- if (unlikely(bio_rw_flagged(bio, BIO_RW_BARRIER))) {
+ if (unlikely(bio->bi_rw & REQ_FLUSH)) {
/* REMOVEME: statistics. */
atomic_inc(rs->stats + S_BARRIER);
if (delay ||