zram_drv: update for backing dev info changes
authorJens Axboe <axboe@fb.com>
Thu, 2 Feb 2017 23:53:07 +0000 (16:53 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 2 Feb 2017 23:53:07 +0000 (16:53 -0700)
A previous commit made the bdi embedded in the request queue
a pointer, but neglected to fixup zram. Fix it up.

Fixes: dc3b17cc8bf ("block: Use pointer to backing_dev_info from request_queue")
Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/zram/zram_drv.c

index e5ab7d9e8c452f2feac3e2f374c6e1639317756b..3cd7856156b42de033b8e18db918542219026152 100644 (file)
@@ -117,7 +117,7 @@ static void zram_revalidate_disk(struct zram *zram)
 {
        revalidate_disk(zram->disk);
        /* revalidate_disk reset the BDI_CAP_STABLE_WRITES so set again */
-       zram->disk->queue->backing_dev_info.capabilities |=
+       zram->disk->queue->backing_dev_info->capabilities |=
                BDI_CAP_STABLE_WRITES;
 }