From patchwork Mon Jun 26 15:37:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9809947 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 06958603F3 for ; Mon, 26 Jun 2017 15:38:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B6B028520 for ; Mon, 26 Jun 2017 15:38:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0000628641; Mon, 26 Jun 2017 15:38:30 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 EF7062861B for ; Mon, 26 Jun 2017 15:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751456AbdFZPi1 (ORCPT ); Mon, 26 Jun 2017 11:38:27 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:37462 "EHLO mail-it0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751815AbdFZPiW (ORCPT ); Mon, 26 Jun 2017 11:38:22 -0400 Received: by mail-it0-f42.google.com with SMTP id m84so749610ita.0 for ; Mon, 26 Jun 2017 08:38:20 -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=DBm5M4Lsy95zdtKmfz8m8EFiHJpmSAmUGkcGIMDuBNA=; b=J/w2sKoFeUmu02mVAkNMVi+JP9dS3t4Zu9V04/rvdTD82S3NmlLOzJCIRZSs31MsP7 Wvlt6RJOxz2X2ylCUcxVwfZc5lNvGSyjKBIMES8U6AkCz1TnExlWUvi/QQyX8iv/44mt qJSyDFvVnHKQs2ItFZ4b7RThQdZbeJN4LFe8Y0yGDUc+FE/1y962vMak3K1FQbWcTXc7 R/wkdL50jEooDvKs8S2zgHkv22JWhZa4gYG+tTFLPHX7ZKi5mcEzVUqdUtidU0iabKnj IgWzL8VOf46OECEbj0DgHyoTMlIqu4tpuT6mf3zdyMzG8GYWRV8/9WLeIsGAOKzhlwFy jSow== 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=DBm5M4Lsy95zdtKmfz8m8EFiHJpmSAmUGkcGIMDuBNA=; b=smx1QYHhGYJFF6JaJ1RXjXipIRhNJrbJXxoX1qYl/leTjPpg+s63D1vqp4Qk7CAYFn +x/EsFdd0ogwE4Ri74NhwqN2Rcl6fSB7LWIx3cX8FWfDhF6x9JM59NL8cp4vbPsgon9G p+S58r+y88eBMbnlHf+bD7FNBmBggikLCLovVyRjhAkIsxEuvtsXzfWmMCjEo+0AfVl/ yLSKwVbtuviVlNFKT4eU65VcpMZ3lQwENhj/f63IpekHt1iNN/ccwTzJnKHEv4/Iyba3 Z6I4EVyO2XPb/4PtQvsyER0lzEoa+euYBz+ReNq8fhQfn4A3Hqq1HWURJcGr5ObHtV/s HPsA== X-Gm-Message-State: AKS2vOwjstr+6co5Mx5zP0NGzN0X3YH1whJXBpFgLYnYge0lcxlofeUE 51QDhjy9+W4NzD5h6hMjFg== X-Received: by 10.36.64.209 with SMTP id n200mr159525ita.63.1498491499936; Mon, 26 Jun 2017 08:38:19 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id b69sm33425itb.23.2017.06.26.08.38.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jun 2017 08:38:17 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, hch@lst.de, martin.petersen@oracle.com, Jens Axboe Subject: [PATCH 8/9] btrfs: add support for passing in write hints for buffered writes Date: Mon, 26 Jun 2017 09:37:59 -0600 Message-Id: <1498491480-16306-9-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498491480-16306-1-git-send-email-axboe@kernel.dk> References: <1498491480-16306-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 Reviewed-by: Martin K. Petersen 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..fde09c6005fc 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 |= inode_hint_to_opf(page->mapping->host); bio_set_op_attrs(bio, op, op_flags); if (wbc) { wbc_init_bio(wbc, bio);