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: 9800473 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 DA9BE6038C for ; Wed, 21 Jun 2017 00:22:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C955228426 for ; Wed, 21 Jun 2017 00:22:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE0A128471; Wed, 21 Jun 2017 00:22: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.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 7F2FD28426 for ; Wed, 21 Jun 2017 00:22:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752892AbdFUAW2 (ORCPT ); Tue, 20 Jun 2017 20:22:28 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:33657 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752879AbdFUAWV (ORCPT ); Tue, 20 Jun 2017 20:22:21 -0400 Received: by mail-pf0-f180.google.com with SMTP id 83so76893056pfr.0 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=DKZYFGXY/7jYNJ3TC2NMaKV4igovowxub1O0wfg8D0C2HIXwXfDbabVZYZsvW7nQSO Vbndx+FY2bPJV+1+Awy2fULUcOYJX1aqS+FT/pVeoXx6OC3hyeC31HW571PNL/vX3PPx fPRhDStFPD+Qy4R+UggJMjewdpTlPNbOOGuTe7D9eEIlOLKuy2rfS/7ogXhM1TfxajyD kJGp20Mmpou6vjHfrsPBEiEdrLgrdF8OjfozsKG7p4RY1ipTkiJLHXUUUg8Z+DjLlL8J evvEzjiP3+HeIWotQMCD0cOwLChhViRI2MT47UqFDgbZ5tHEPvujYJr1rRobXmpsMx6E B4Iw== X-Gm-Message-State: AKS2vOwMMh/1hBr+Qq77REAcKrl59iUdcEU2QzFER76BwJvx2Qvp+sYy 8s8RjHX6AvSVd1QDB8A2Dg== 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-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);