arm64: defconfig: enable common modules for power management
[linux-2.6-block.git] / drivers / md / bcache / writeback.h
index 073a042aed243b2660f6b70a380d0647c709aa65..301eaf5651673ffd0c2401efb97a70fe07e5cb44 100644 (file)
@@ -57,7 +57,7 @@ static inline bool should_writeback(struct cached_dev *dc, struct bio *bio,
        if (would_skip)
                return false;
 
-       return bio->bi_rw & REQ_SYNC ||
+       return bio->bi_opf & REQ_SYNC ||
                in_use <= CUTOFF_WRITEBACK;
 }