Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1054615imm; Wed, 6 Jun 2018 09:46:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLnAMLRZ3jhlFGznEVFj2DV0rHS3n77hbNp+j020Itnwk44ja29VYBDG13vfivwTfyhsZht X-Received: by 2002:a17:902:8a81:: with SMTP id p1-v6mr4054772plo.33.1528303581965; Wed, 06 Jun 2018 09:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528303581; cv=none; d=google.com; s=arc-20160816; b=Nl5WSF14Lp3UkAws8kp5MGw/jReqnHSAyROkSTthhIWCIQ+HewWhkDATisv3a8r3+f IwmP/NOygnyv/+4nCjQi/w2KghvsBQfdNnAcNiB1ekgiKnE6Swu5giQyq9Pee/Wf24vF gCUfcGPtnnYALYXMd/OHubK1zRxYh7x3dXE8rNGOj1fgWD6m8l8QSjR5vaxVFqQmhfUs XtLXLO9Eljd9xNmkBnz7qDuX1XS4oWWbnVnTHispO5jovAHW7ShR35FxaM9wP7IU+tkK CadtI5W1PR8Bzy8KMm2+9kZ1hl+7MFlvit2o0WeRC7KyrX6W9ababQbTFi789obtwYhu x+6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=UDQssSWBMbtzoeZJzdON1N6D9YQ8MOJBDL98IM7WT7Y=; b=BnAXGLGj+qUzBmBaw3po8hp+ZScBGctNrCPEFVGdqcy6SOlA7BQTECh91zlOYsLWTT PZ/jSxKcvyzT+PqfUTk7a56Z7TpQsKEPox0PgsBnDPL2CigvpQBpBffpbmaL7JPGSi0u Ux5DV+lVT5iiYiVK5Cqr3jp5RtlJmV9M2z/Ew38tUvJSiSjDqQpYmue2eT+OdwkPZETU fc8ka0yy7n8uZDKjKXtOJkreYE9WrfFiptFgTWA7KmihwpieSLwmRLUtsBPinUmopBh/ pBmlfIEAbEOQeFQArg8JKKe2R/q3LFr02iFq8cEf6zwG/K9XCz1S06pntjEGYUdBXdXT 8GOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13-v6si16301215pfm.330.2018.06.06.09.46.07; Wed, 06 Jun 2018 09:46:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753409AbeFFQpR (ORCPT + 99 others); Wed, 6 Jun 2018 12:45:17 -0400 Received: from mga01.intel.com ([192.55.52.88]:8289 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752277AbeFFQpQ (ORCPT ); Wed, 6 Jun 2018 12:45:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2018 09:45:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,483,1520924400"; d="scan'208";a="60932373" Received: from theros.lm.intel.com ([10.232.112.164]) by fmsmga004.fm.intel.com with ESMTP; 06 Jun 2018 09:45:16 -0700 From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , Dan Williams , Dave Jiang , linux-nvdimm@lists.01.org Subject: [PATCH v3 1/4] pmem, libnvdimm: complete REQ_FLUSH => REQ_PREFLUSH Date: Wed, 6 Jun 2018 10:45:12 -0600 Message-Id: <20180606164515.25677-1-ross.zwisler@linux.intel.com> X-Mailer: git-send-email 2.14.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Complete the move from REQ_FLUSH to REQ_PREFLUSH that apparently started way back in v4.8. Signed-off-by: Ross Zwisler --- drivers/nvdimm/pmem.c | 7 +------ 1 file changed, 1 insertion(+), 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, return rc; } -/* account for REQ_FLUSH rename, replace with REQ_PREFLUSH after v4.8-rc1 */ -#ifndef REQ_FLUSH -#define REQ_FLUSH REQ_PREFLUSH -#endif - static blk_qc_t pmem_make_request(struct request_queue *q, struct bio *bio) { blk_status_t rc = 0; @@ -179,7 +174,7 @@ static blk_qc_t pmem_make_request(struct request_queue *q, struct bio *bio) struct pmem_device *pmem = q->queuedata; struct nd_region *nd_region = to_region(pmem); - if (bio->bi_opf & REQ_FLUSH) + if (bio->bi_opf & REQ_PREFLUSH) nvdimm_flush(nd_region); do_acct = nd_iostat_start(bio, &start); -- 2.14.4