]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - block/bounce.c
block: manipulate bio->bi_flags through helpers
[mirror_ubuntu-zesty-kernel.git] / block / bounce.c
index f4db245b9f3a67632899dbc32c443b88974405a5..2c310ea007ee3653b085c1efe9d195b18772be85 100644 (file)
@@ -186,7 +186,7 @@ static int must_snapshot_stable_pages(struct request_queue *q, struct bio *bio)
        if (!bdi_cap_stable_pages_required(&q->backing_dev_info))
                return 0;
 
-       return test_bit(BIO_SNAP_STABLE, &bio->bi_flags);
+       return bio_flagged(bio, BIO_SNAP_STABLE);
 }
 #else
 static int must_snapshot_stable_pages(struct request_queue *q, struct bio *bio)