From patchwork Mon Jun 26 15:37:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9809953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14F50603D7 for ; Mon, 26 Jun 2017 15:38:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A38028520 for ; Mon, 26 Jun 2017 15:38:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F40C2861E; Mon, 26 Jun 2017 15:38:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2AC528520 for ; Mon, 26 Jun 2017 15:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751837AbdFZPic (ORCPT ); Mon, 26 Jun 2017 11:38:32 -0400 Received: from mail-io0-f172.google.com ([209.85.223.172]:34278 "EHLO mail-io0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbdFZPi2 (ORCPT ); Mon, 26 Jun 2017 11:38:28 -0400 Received: by mail-io0-f172.google.com with SMTP id r36so2997528ioi.1 for ; Mon, 26 Jun 2017 08:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=heO8CEGh8MW8C02XeZbydv3SKTOGUyUpWFrJULMCCaY=; b=MjyhiRWt9D8qOlc6fELo18SBXaIpkxnqNXP2gGMb0uy+uIlCe/5v7wmf9eC1QSV6IC WW4C+iJlDB/Nmjo7TLxdpfz4HMvEWblxU9TdyFdlMEJpC6WizXXQ7sYMYhxRNSQvx7Zs 4CoEZnuijni9ZjG2/tYE24N+WHQbjaXe8F/HfX0dXKenCqTBvNR1mdD5Pb6TVBojEIyi bF0C1Mr/9MLmt21CRjQ6/QzXNdJL3/PDFoOt3ffYBeYmWRxvjZl4YFA8DIvw505Q1BEQ 9hccVdzEDSaYKaScZrhcOxcoztI6O/cOdJaxlC6VjkvFVcK09JsEDfdB18EjIMjCgVwW etRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=heO8CEGh8MW8C02XeZbydv3SKTOGUyUpWFrJULMCCaY=; b=M3wgzIOUQ309beFRBcVOJMtpiswqYfOi5/OrU4hapcwmlneN315iuvkGboyc9EUBql 1KdEK+FSvWpDV54ntdJep+7KTP8D524W2ZlEkIdy0dlnWzlsyT10gwiwUI71L3CTi2BR YXFgOCLa0AGQou/weQxMNu4yrmiQNoIXaKRcASywBEZpvi6jC4pqoz2ndMVRm4Bls26r NCHTrrBJqM9yevbVC0DzF4bK9SoheaX4+EKOBW2ziAfy1/gJF5eCcK/82GgDOTIgZxSo FoRyVXvinA+vIPvNKTkuoMqR1xdTkiKOv1gN/MFZD+ab0vKwjw14YtFMQEiEniA+4Zt4 j6LA== X-Gm-Message-State: AKS2vOzM+3MynY+tYkMET2WsyTTXgjiSA3iijcYuEC6g3FAq9aBjjxQu oIHFxyhYSx0sAjZhfYX7bQ== X-Received: by 10.107.44.71 with SMTP id s68mr959009ios.53.1498491497155; Mon, 26 Jun 2017 08:38:17 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id b69sm33425itb.23.2017.06.26.08.38.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jun 2017 08:38:16 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, hch@lst.de, martin.petersen@oracle.com, Jens Axboe Subject: [PATCH 7/9] xfs: add support for passing in write hints for buffered writes Date: Mon, 26 Jun 2017 09:37:58 -0600 Message-Id: <1498491480-16306-8-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498491480-16306-1-git-send-email-axboe@kernel.dk> References: <1498491480-16306-1-git-send-email-axboe@kernel.dk> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Andreas Dilger Reviewed-by: Martin K. Petersen Reviewed-by: Darrick J. Wong Signed-off-by: Jens Axboe --- fs/xfs/xfs_aops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 76b6f988e2fa..ceb124bd8f80 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -506,6 +506,7 @@ xfs_submit_ioend( return status; } + ioend->io_bio->bi_opf |= inode_hint_to_opf(ioend->io_inode); submit_bio(ioend->io_bio); return 0; } @@ -565,6 +566,7 @@ xfs_chain_bio( bio_chain(ioend->io_bio, new); bio_get(ioend->io_bio); /* for xfs_destroy_ioend */ ioend->io_bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc); + ioend->io_bio->bi_opf |= inode_hint_to_opf(ioend->io_inode); submit_bio(ioend->io_bio); ioend->io_bio = new; }