bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag
[linux-block.git] / drivers / nvme / host / core.c
index 741c9bfa8e14c78aefcf0020d3110e5e8278f90f..c190c56bf7020d0cfc49def5975e1e6f18d169ec 100644 (file)
@@ -3926,8 +3926,7 @@ static void nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid)
                goto out_free_ns;
 
        if (ctrl->opts && ctrl->opts->data_digest)
-               ns->queue->backing_dev_info->capabilities
-                       |= BDI_CAP_STABLE_WRITES;
+               blk_queue_flag_set(QUEUE_FLAG_STABLE_WRITES, ns->queue);
 
        blk_queue_flag_set(QUEUE_FLAG_NONROT, ns->queue);
        if (ctrl->ops->flags & NVME_F_PCI_P2PDMA)