From patchwork Thu Jun 15 16:42:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9789295 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 B69C560384 for ; Thu, 15 Jun 2017 16:42:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8CF3286BF for ; Thu, 15 Jun 2017 16:42:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B7E6286C0; Thu, 15 Jun 2017 16:42:42 +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=unavailable 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 3AE362852E for ; Thu, 15 Jun 2017 16:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750936AbdFOQmk (ORCPT ); Thu, 15 Jun 2017 12:42:40 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:38868 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbdFOQmj (ORCPT ); Thu, 15 Jun 2017 12:42:39 -0400 Received: by mail-it0-f43.google.com with SMTP id l6so14178846iti.1 for ; Thu, 15 Jun 2017 09:42:29 -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=Az+kcmZLMS4Uu8KoXmBMLvIs5zJSMHQabwaOTajVqqg=; b=SADVnwz7UawqhFR9tT+AH2buKAoksJ72pzBqdbG7PcrYzXLnvXGaDC987+WiTv75rY mefT+h7WDka0RGIBD08oI7xbCxMRTUpmPLClZseVqu8T2ZTv0dzoLDCOqP/Gre5B5MSq Z0cl4m7aWmcjTPgNt+ux7vs/DGYNflnk6veCPI5NF4VjOm8po46k3wKBUQ4Z48Ly7l+e pAofPwY153M+CO5A7RRKeCKgkuYUh8ENyTJwNM5kwYm+XDUUQC4jc/DE2VyxYZUoK8Sk SQs1yqd5K5fYlKPV2gRF60nM2ZsMbUL8y9OU9AO7cKqmcn5/nnGy23xVHqUxaUe7H4Ee HktQ== 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=Az+kcmZLMS4Uu8KoXmBMLvIs5zJSMHQabwaOTajVqqg=; b=UyIbEiJYGBfelEF/QNmJlVedQRS+SxysZlsLIvwy2veyTq0NhhdxvcHCX0lU763PPE 1Q0TrcfnvRlHDb364uWx1Vt8teO2xXyFLZkPHw6NO+gRTlwmGSITvTsOjeaZv4MY3ilJ zFrsic7z73AnQU1IgreswmdUlbNDKaPFvG/51KtfTTC841rc4WKWkoQINwbzztuvUH7h ipKOHQDeYsu2KMkmTS9e79I323eQvjoACxCF57tr4o7NdpqwS76mnmz2YWtKtJhspui4 pE1b0s0gnPfR+o5vWNOWxc6jOEXKfIn3XH0KuutbFJvUNJHRG6REZqsCiGMNhJvncW0L Lllg== X-Gm-Message-State: AKS2vOyJ/2nTeIeUTGbUzB0MDxHqxyiicQ9llTA29LZ+2jh21oM6db+K /K2lR6sJlxVUKwvX X-Received: by 10.36.175.91 with SMTP id l27mr6447315iti.63.1497544948947; Thu, 15 Jun 2017 09:42:28 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id 97sm313476iot.25.2017.06.15.09.42.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jun 2017 09:42:27 -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 11/12] btrfs: add support for passing in write hints for buffered writes Date: Thu, 15 Jun 2017 10:42:09 -0600 Message-Id: <1497544930-19174-12-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497544930-19174-1-git-send-email-axboe@kernel.dk> References: <1497544930-19174-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..2bc2dfca87c2 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 |= bio_op_write_hint(inode_write_hint(page->mapping->host)); bio_set_op_attrs(bio, op, op_flags); if (wbc) { wbc_init_bio(wbc, bio);