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: 9788019 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 8580860231 for ; Thu, 15 Jun 2017 03:45:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78999280B0 for ; Thu, 15 Jun 2017 03:45:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A66128210; Thu, 15 Jun 2017 03:45: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=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 5A7F926E16 for ; Thu, 15 Jun 2017 03:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752124AbdFODpj (ORCPT ); Wed, 14 Jun 2017 23:45:39 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:34480 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752088AbdFODpi (ORCPT ); Wed, 14 Jun 2017 23:45:38 -0400 Received: by mail-pg0-f52.google.com with SMTP id v18so1656853pgb.1 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=gQogoIBIeOU9ymJIe1mgb64LFuTeW23BOpEoyGjv11diAiLzcQVjKWFPgE7C3TF8gv feAXWt8G4N6wwUHe8s1DsIr0PV7s6VRlmv8ex/WLzlLwOppyzVQ8KpmTQM/hRDSoipHe STQME/l3Am0Qwo+dUyDaIC5vmf6efP2lXdc3T3l8H2r/aSzmdoj4oAF9nyGJdBmX9x7S ASTimdRzJYWSAhmpLgIWOfLQ+Wu3oTuLluPscxIR01GT+RXxBQRnY8NlL/IqpNmVUKGI 0wOj6tTemuDeX4DGvEfPOR7qYOvX1kjqmKOdm2zcQfdqb/Tp2iq92cfr09hczOPVH5Jk 0PNg== X-Gm-Message-State: AKS2vOwwkh+jpm0qb/XVjQNgPXSU/0DHU0PQAE5Lq/VQsZxW2hS3n0uA QlioQ2snqHKWqKrCt8TMAA== 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-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 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);