From patchwork Fri Jun 16 17:24:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9792301 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 5BE8A60231 for ; Fri, 16 Jun 2017 17:25:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F84928210 for ; Fri, 16 Jun 2017 17:25:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 342902866B; Fri, 16 Jun 2017 17:25:01 +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 C0AF92029B for ; Fri, 16 Jun 2017 17:25:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752198AbdFPRY7 (ORCPT ); Fri, 16 Jun 2017 13:24:59 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:33595 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbdFPRY6 (ORCPT ); Fri, 16 Jun 2017 13:24:58 -0400 Received: by mail-io0-f178.google.com with SMTP id t87so34317946ioe.0 for ; Fri, 16 Jun 2017 10:24:58 -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=YA2z3SGxs7NQDoZk7zv2wWwpRSiL+gH9RkJQ/0OZfkIPhnaakQFiw8fe1wQ2btcwtN YpMn76IN9tcMwJgqVLZaU6rzX/rWVqb+kRRZt7nVYictuwmqPHkknmeebtuLqBJ7HcOP uK7tBIoE6OF7q3NN2ir8udjrm+O150iy9niMQqZMYkJZPr1VUIj4srYAYJ/4TSixFGfO CbGnFI2kcKiYfUPqjdHeraQw7WncZsAKYcHCOE1Ljuit782HjsA+7W9ccd8i9tVt0vov 79xPhRPjPd3YHarjwwiPtH59jHpTOxVltv+pMKE0hltc5ODnv9fSkSExiLAaNdyNT5eY IbLQ== 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=iToFTTTF4/5gVqHtPlxNWvshGFCTdBYNlUwBmt7GpCHj4nPQjsuE+AvgFphQfM0JUe k/RdMiwax+kH4WuWBObM5dWuG9ZbldbDwXZE+WYZgL8Klr0tKOf4qD7glhdjzyBdBt4v LyAiTF8faRrC2W4DnSiuDg0MH/i53KHjB0xfRllXaEgV8FFuAezQKYEJNcNDjzyUg/kB Rs7wQEgUSgwIp2V/EwdZnlUTfKF/9da1PB5cC3x5YZTzejN2Mn6zI20dw2JIiHKHzsgB TlRvCsCO4SiwxsJLM5wBGSyMZ1YCrEtRDZBK1KyvyDLZEUhbRYeWv3PzwR19i92qf1Eo DIXQ== X-Gm-Message-State: AKS2vOzCx83doFLcC71g3Z/747/1zDg3MdkFK8ojfzyf5mSFSsC/akek CSpjQ0sDsg1Hwx8I X-Received: by 10.107.17.39 with SMTP id z39mr10939818ioi.107.1497633897427; Fri, 16 Jun 2017 10:24:57 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e31sm1661101ioi.51.2017.06.16.10.24.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 10:24:56 -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: Fri, 16 Jun 2017 11:24:41 -0600 Message-Id: <1497633883-21230-10-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497633883-21230-1-git-send-email-axboe@kernel.dk> References: <1497633883-21230-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; }