From patchwork Thu Jun 15 03:45:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9788033 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 2F2E660384 for ; Thu, 15 Jun 2017 03:45:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24A4523F88 for ; Thu, 15 Jun 2017 03:45:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1861B27C2D; Thu, 15 Jun 2017 03:45:52 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 36C4D23F88 for ; Thu, 15 Jun 2017 03:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752123AbdFODpj (ORCPT ); Wed, 14 Jun 2017 23:45:39 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:32811 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbdFODph (ORCPT ); Wed, 14 Jun 2017 23:45:37 -0400 Received: by mail-pg0-f49.google.com with SMTP id f185so1675881pgc.0 for ; Wed, 14 Jun 2017 20:45:37 -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=vIWywecfrs5Z+btacsr+P/Jv94zADy30MR/W084FqggtMnpuTZb1lXzZtV3ZYXbBCs uFIX+uEMv0xr2ncqesxwjsNGRcPlJ0wNjWsq0+3J5W4sqvJ0KO1wc9UhVhOjhLvsRJre fUOIE2hu13wiqWYBRv2bdxX3mo0HNHUBgqkYwqpZXwrO+6/Ae8Vs7k2JSeqb+UxTTSU1 2h6hMWKAQqklgoOmDuN6qlTgULDA6q8NbVgZ5HuU6qcVikEsirJMiFO1HwfFuNqMCbJe fcDfEIYCWbWuZT6QT1hhM/yfqAbwNQ1HyHIXRmm/HAbUNvijQ+CaSsrvdBpJQd9F/OwI lF3g== 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=tjmdK71DYOlyhKQcxUBBULMoyBGTaUjiHlo32V3V3XRp7unruS3aJauxr37+3B58zY lpOGYL6a0gVSd4fD68cJ2tirbA7S6Pz/MSvYOjVLhoXS56zOUqxJ4HruZQYxsmme5RTv Msk5C1bzCfXZJYZsZIgOzXalxn645s8XId4SZ+87QqkFMQiASLlKkJnWDe+vZCGx8rb2 ZwBUkP5GTR3WlGWIxB25M6v9SmKbTxbu+96uaM1MT5RkczsafxrV7ovXdCFA1eF6y8+j JXMtcedc10dWfaFXiZlyI750rY8vAfjFR/xQwFdgU85xRV83ELoPmww6mA2Yy4bSHwvI V95w== X-Gm-Message-State: AKS2vOzaodQ+kH6G9TH3/0/laXl2Jqt4N33sc/1AKtXNCxZfNbdLIdEK H8/BoCsylWNn5ojJj+O8IQ== X-Received: by 10.84.142.131 with SMTP id 3mr2672850plx.33.1497498337278; Wed, 14 Jun 2017 20:45:37 -0700 (PDT) Received: from localhost.localdomain (66.29.164.166.static.utbb.net. [66.29.164.166]) by smtp.gmail.com with ESMTPSA id f71sm2532627pfd.98.2017.06.14.20.45.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 20:45:36 -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: Wed, 14 Jun 2017 21:45:11 -0600 Message-Id: <1497498312-17704-11-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497498312-17704-1-git-send-email-axboe@kernel.dk> References: <1497498312-17704-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);