From patchwork Wed Jun 21 00:22:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9800469 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 9C5EA6038C for ; Wed, 21 Jun 2017 00:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C0C52846B for ; Wed, 21 Jun 2017 00:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80E6F2849E; Wed, 21 Jun 2017 00:22:29 +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 0E74928488 for ; Wed, 21 Jun 2017 00:22:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752852AbdFUAW2 (ORCPT ); Tue, 20 Jun 2017 20:22:28 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36847 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752873AbdFUAWV (ORCPT ); Tue, 20 Jun 2017 20:22:21 -0400 Received: by mail-pf0-f175.google.com with SMTP id x63so76731040pff.3 for ; Tue, 20 Jun 2017 17:22:21 -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=YfhhAntgPOMj5sKGQMMjMcm98K3TLgGVtbtqzqMG7fU=; b=V7DCZKkWNaWs5LLWK9QbENRaJs9r9fKKsLCX9ZzpDhn3rU55tiSI67OJYf6Ropg4Sx ltGFXoSpHcZAK0JHlVVYQ/MOup9KrYjcINEnx3igwETPlhT4YDscvkdRV4VjYXwUMjtY 0Oi/MAJJvMp/6cttJL8TW8UBqgc8Qx2+jBRj6AVmh7q5ZjB93xoH4IYDvp+flM0kfpXE W1iBmwJwEhfE4B5EVmCrvcZF76z7aapC41jIHzPntQtKe2aDTGG/U8xJTfeCuGcgYCzI 3hJ+tTXKKaOy52gyXd34tJsSkyUIQGm3mQ9f5nSygoyFl8o2hqfY3NENAhZht77daRZl Vu7g== 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=YfhhAntgPOMj5sKGQMMjMcm98K3TLgGVtbtqzqMG7fU=; b=tXA4LJKSv+VT13NtOOVpeiJWmyehtmMzOxlGXFBWB0NtZyR4MRJO0mzTUSTR+NV0AD SvQi5nnTlnDstP8oeamVPhk+4M6iy7nYt1KBIzBC96dhmTa9WO2GOMbxPbeMX4QAy4Dv hZoR9qcv598avUqwyi6163kyLB532MtXZrAkZsh3OjtHrg4QjSJpMjWke3GHxyg2shuA eH24U0PmSVNFdsmoTfYlHV3tZYSbrni8WauJdxlztcVRcUIzpDhx5vRcxgzaT9UA7RUd hCmZo6FVi3x36dvlUv3nU3AjKd51yeUIcPtBQ+NABBiM0U8IAUjRRYukLRO7Vaa7A/hY ulPQ== X-Gm-Message-State: AKS2vOykaEt66Hlm3+VFLT44H350rGAmE92c6SexZ5W761uM7uHLA08D gqRRTKP/91VoOdA6 X-Received: by 10.101.85.199 with SMTP id k7mr34735696pgs.172.1498004540797; Tue, 20 Jun 2017 17:22:20 -0700 (PDT) Received: from localhost.localdomain (66.29.164.166.static.utbb.net. [66.29.164.166]) by smtp.gmail.com with ESMTPSA id f10sm13447835pfd.69.2017.06.20.17.22.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 17:22:20 -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, linux-nvme@lists.infradead.org, Jens Axboe Subject: [PATCH 8/9] btrfs: add support for passing in write hints for buffered writes Date: Tue, 20 Jun 2017 18:22:05 -0600 Message-Id: <1498004526-4543-9-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498004526-4543-1-git-send-email-axboe@kernel.dk> References: <1498004526-4543-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 19eedf2e630b..3e57cfaa6dd6 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2830,6 +2830,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);