From patchwork Fri Jun 16 17:24:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9792313 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 E502760231 for ; Fri, 16 Jun 2017 17:25:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9ABF2029B for ; Fri, 16 Jun 2017 17:25:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEA9428500; Fri, 16 Jun 2017 17:25:06 +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 4F79928456 for ; Fri, 16 Jun 2017 17:25:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbdFPRZD (ORCPT ); Fri, 16 Jun 2017 13:25:03 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:37129 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbdFPRY7 (ORCPT ); Fri, 16 Jun 2017 13:24:59 -0400 Received: by mail-it0-f44.google.com with SMTP id m47so31072326iti.0 for ; Fri, 16 Jun 2017 10:24:59 -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=7QQVfoM3QgBg/hWQWGcXWpX4EmO2Z3DaIrmzhwbv8is=; b=Asxdry28w3kPPAr/QhQ4IgHV46QVTuvHUt/E9E29bw++uyHFcTMm5CVfCfO00QzCtk WpRWLTM/nL9XxPqc+MJejFQkwx5esLa3vT6YGkTT0rSU0hGE4DqwGIzq4WFcchPbJzBD NNo9zvhlOkzP2mou68k7+iJ5nfzijpLctismzRoQTxbPw9qQL+Zz7qUKJ0zkCsHUu0xH v0MvK92FVNyHaCjtBJkjPlEsaRM/yFfVTU8iO0QwDQOsV3rA+1LdpXe0ON23cDijkLyS d22riVfqC5T65AA2fCJ26VCq3/Cm6BV12wXeoNEyWwGUVzyC7sfglGsMOAKei4oR/qHx Kfww== 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=7QQVfoM3QgBg/hWQWGcXWpX4EmO2Z3DaIrmzhwbv8is=; b=q7PR4LAYsqCJUfYY52fHTOPhIj+JhLjGZ4Q99iHmShvfhhm3X447actBvZS/PIyDFe wfCb6gvVfhShk3hNs/u7PVLWIioLTTjV+DpaeNE5Qouql3ZPHKIcCPSW2T7pHgYIVbGF R/DgVsg11sGhiEZZAz9VL5xCY5mdtMzW/mewa18U0gzjlXjt7wCiGlTLqt1bXNvVpQpq 69XoFgWENQZbImGtnaR/86K+4pPV7a2g3AFg2QmxFA4+e6EMfMolH+tfVzgT4KhhbTzN fqm3nMEFy4ZrGafrphGbtf3/HT/dHWYb7jEeM1A+7ObJqj7+EUgkxtWFmjhAsQIiFib6 eRZg== X-Gm-Message-State: AKS2vOyTMEYKxlmJZnBZvj5G4EzHY1kW6Yi+YVmN9ue3uPTNE0GK4uHV MbmhbJtMVTnaYQu61+x+yw== X-Received: by 10.36.14.214 with SMTP id 205mr11916068ite.80.1497633898448; Fri, 16 Jun 2017 10:24:58 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e31sm1661101ioi.51.2017.06.16.10.24.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 10:24:57 -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 10/11] btrfs: add support for passing in write hints for buffered writes Date: Fri, 16 Jun 2017 11:24:42 -0600 Message-Id: <1497633883-21230-11-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: Chris Mason Signed-off-by: Jens Axboe --- fs/btrfs/extent_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index d3619e010005..92e75e4014ea 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2826,6 +2826,7 @@ static int submit_extent_page(int op, int op_flags, struct extent_io_tree *tree, bio_add_page(bio, page, page_size, offset); bio->bi_end_io = end_io_func; bio->bi_private = tree; + op_flags |= write_hint_to_opf(inode_write_hint(page->mapping->host)); bio_set_op_attrs(bio, op, op_flags); if (wbc) { wbc_init_bio(wbc, bio);