diff options
author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2018-06-06 12:45:12 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-06-06 13:40:56 -0400 |
commit | d2d6364dcbf6affb6f52cdae668c59117703c661 (patch) | |
tree | 804fd96b22d5305981b76f44b8e3b1b11b5ab31e /drivers/nvdimm/pmem.c | |
parent | d4dd70915ea82b7196108c1f0102bc09295c4513 (diff) |
libnvdimm, pmem: Complete REQ_FLUSH => REQ_PREFLUSH
Complete the move from REQ_FLUSH to REQ_PREFLUSH that apparently started
way back in v4.8.
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/pmem.c')
-rw-r--r-- | drivers/nvdimm/pmem.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 9d714926ecf5..252adfab1e47 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c | |||
@@ -164,11 +164,6 @@ static blk_status_t pmem_do_bvec(struct pmem_device *pmem, struct page *page, | |||
164 | return rc; | 164 | return rc; |
165 | } | 165 | } |
166 | 166 | ||
167 | /* account for REQ_FLUSH rename, replace with REQ_PREFLUSH after v4.8-rc1 */ | ||
168 | #ifndef REQ_FLUSH | ||
169 | #define REQ_FLUSH REQ_PREFLUSH | ||
170 | #endif | ||
171 | |||
172 | static blk_qc_t pmem_make_request(struct request_queue *q, struct bio *bio) | 167 | static blk_qc_t pmem_make_request(struct request_queue *q, struct bio *bio) |
173 | { | 168 | { |
174 | blk_status_t rc = 0; | 169 | blk_status_t rc = 0; |
@@ -179,7 +174,7 @@ static blk_qc_t pmem_make_request(struct request_queue *q, struct bio *bio) | |||
179 | struct pmem_device *pmem = q->queuedata; | 174 | struct pmem_device *pmem = q->queuedata; |
180 | struct nd_region *nd_region = to_region(pmem); | 175 | struct nd_region *nd_region = to_region(pmem); |
181 | 176 | ||
182 | if (bio->bi_opf & REQ_FLUSH) | 177 | if (bio->bi_opf & REQ_PREFLUSH) |
183 | nvdimm_flush(nd_region); | 178 | nvdimm_flush(nd_region); |
184 | 179 | ||
185 | do_acct = nd_iostat_start(bio, &start); | 180 | do_acct = nd_iostat_start(bio, &start); |