From patchwork Mon Jun 19 17:05:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9796937 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 890D2603F5 for ; Mon, 19 Jun 2017 17:05:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E5CB27CEA for ; Mon, 19 Jun 2017 17:05:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 639C727480; Mon, 19 Jun 2017 17:05:36 +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 E96C926E97 for ; Mon, 19 Jun 2017 17:05:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752640AbdFSRFa (ORCPT ); Mon, 19 Jun 2017 13:05:30 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:37326 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752637AbdFSRFV (ORCPT ); Mon, 19 Jun 2017 13:05:21 -0400 Received: by mail-it0-f52.google.com with SMTP id m47so61144864iti.0 for ; Mon, 19 Jun 2017 10:05:16 -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=naVevHbEoRbDJ/NfTIMuW/IIWAsDG+/ujNQApMplRdXPkCPJPwSqSHxRlP1eq/i5mz 5tJTzWYaxnoZfbXyVUHpcvGGt3cEW2FCN6F1bD7EAkY4r1ukwMpsMnO21QX8RfQiVcgP P/S0qfQ5hU2qVCI5gJosrudUAWwHaoDCqK7k4mbTCMrgS907XM+KCIPkst/jUO7p4Pds sE7rqcv34C8bz5Pp9R4A1UAtPlK02QQaQ0q+4qpbFBBdzHSSWDbrI2vO4zb7o+30S27+ xg8JNbiN1DhPEk6sgZKy67Pn8gVvGAQAXIrdiGZlOYf6Ws6k2BtoVZe0oKDxi02rh4h9 S1hQ== 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=SvdkqGq7tsDGc+pFPLBP6DKBIzF9Nmk0nHGVFR3tpVWPdKpxNDaXKMaK37r/jF4KNB UBxR/jwQ7rsiSgzT5hnD2xjoEzWPOiqSpw5wD42pzh7Y4rekZssT/ItzNn2PpETyArqz TPIGdWvHBWEPGMmGkP4Ix3MVSG1T7eqEGermsuWXUk19RC037B0hHFfXoBvS8/nyLZiV 29znTF2kFdOsyMr2UP+6OfJ2tUwt1PUU8hxHWp+PzAadhQrG+oz9Von5DQWcBgPB7jvU x5nrA5a1+nla8jiCFbIq2dspCXLDEeRPj/aWvMgU5s+JZ/owJTHPTomFI+FUextdSmBO mQ8w== X-Gm-Message-State: AKS2vOxmPw/UO37gGnx/BmaPgxcEt0Mf7wpn7Y1II2yRC2xwt8uBKqoq XzaAP4sgP3AjZFNgLed+Mg== X-Received: by 10.36.55.149 with SMTP id r143mr22819130itr.53.1497891915340; Mon, 19 Jun 2017 10:05:15 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id 3sm6770522ith.7.2017.06.19.10.05.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 10:05:14 -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: Mon, 19 Jun 2017 11:05:01 -0600 Message-Id: <1497891902-25737-9-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497891902-25737-1-git-send-email-axboe@kernel.dk> References: <1497891902-25737-1-git-send-email-axboe@kernel.dk> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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);