From patchwork Sat Jun 17 19:59:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9794381 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 E1803600F6 for ; Sat, 17 Jun 2017 20:00:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5EC427E71 for ; Sat, 17 Jun 2017 20:00:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CADC527FAC; Sat, 17 Jun 2017 20:00:21 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 7E2D327E71 for ; Sat, 17 Jun 2017 20:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752793AbdFQUAT (ORCPT ); Sat, 17 Jun 2017 16:00:19 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:33863 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752805AbdFQUAO (ORCPT ); Sat, 17 Jun 2017 16:00:14 -0400 Received: by mail-io0-f176.google.com with SMTP id i7so46075855ioe.1 for ; Sat, 17 Jun 2017 13:00:14 -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=KrAmBj6klkYjo1n5lJUjJNjk4+pxXlXldEKObb7b3Rk=; b=srATU1NwJcV96S57kewUcz0IvL2mh7mP/EPjkS51x2XNXlS64zT7iYg/b2z+nAc34j fu6G1NZ9aOUmx9vQ7uHbt3H9XsuyzH0JSQzkOIdm1WfBplNUQiEcxfu6vWqmd7Nmk2L2 g+hfvayyYnuNIHEldqCx9dT2Su6Bkzw43QUNo84AlP/1FWlYkqvVXD8cwP2Fipz6ipj+ e+m6voCMxxG64dDrQ4gfA8ov/q3+wlMppT+F29XOAA1rTErjwubD95hvr+1SjEMJSuUo 8KpHIxMztcpFaELK+SqbXVMrjCDZVcjb5c5ijHM73HxPpfprz7kwSwtZ+BPFT0f9i9bq NCfQ== 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=KrAmBj6klkYjo1n5lJUjJNjk4+pxXlXldEKObb7b3Rk=; b=hcFyTg8FqQaP0mJMIsaR8gNQuwhqQs6KmvT7GpKCH7NVgQyAwZWwdPQnK0ccLFam1o iEwvKk/EJchS/AmPSNvXWrzVygAlEZK0aMgjBjV3QPniic+fjp7vzCmynI+mtLRFPaWP r0I/r+Gt4b9tJ0W31TYFHk/K8H896I+17GpooAQdVE7O6Li+Qk+bK50SJdeOIshGuC7d gmrKq4+9RY7zWgjIoDYzab1IpDe3Q8SzPEn3+LsuOe3c9ziw0iYN8BGCHoREYKiY3O0f 8tuYsjv81IIpQYNHnjVKEUFXYUJSiy0SHjVBKmPscKwKb8CrdLkB++QBHI3Jr16S7Iul SD9A== X-Gm-Message-State: AKS2vOx20A92KTMzM3LrXRqEZGJsDwKafWTFLXFOSsrYJTHu1igyLqWo pyBlmDxJJA+z923NIRLnuw== X-Received: by 10.107.158.131 with SMTP id h125mr1924942ioe.82.1497729613678; Sat, 17 Jun 2017 13:00:13 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id w199sm537049iod.15.2017.06.17.13.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Jun 2017 13:00:13 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Cc: adilger@dilger.ca, hch@infradead.org, martin.petersen@oracle.com, Jens Axboe Subject: [PATCH 09/11] xfs: add support for passing in write hints for buffered writes Date: Sat, 17 Jun 2017 13:59:52 -0600 Message-Id: <1497729594-4707-10-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497729594-4707-1-git-send-email-axboe@kernel.dk> References: <1497729594-4707-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 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 09af0f7cd55e..040789c51930 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -505,6 +505,7 @@ xfs_submit_ioend( return status; } + ioend->io_bio->bi_opf |= write_hint_to_opf(inode_write_hint(ioend->io_inode)); submit_bio(ioend->io_bio); return 0; } @@ -564,6 +565,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 |= write_hint_to_opf(inode_write_hint(ioend->io_inode)); submit_bio(ioend->io_bio); ioend->io_bio = new; }