From patchwork Wed Jun 14 19:05:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9787293 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 551DC6038E for ; Wed, 14 Jun 2017 19:06:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4883A23D5E for ; Wed, 14 Jun 2017 19:06:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D914268AE; Wed, 14 Jun 2017 19:06:08 +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 E0B4E24B44 for ; Wed, 14 Jun 2017 19:06:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751979AbdFNTGG (ORCPT ); Wed, 14 Jun 2017 15:06:06 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:33499 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096AbdFNTGE (ORCPT ); Wed, 14 Jun 2017 15:06:04 -0400 Received: by mail-it0-f44.google.com with SMTP id x129so1687030ite.0 for ; Wed, 14 Jun 2017 12:05:58 -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=TMsk9pfgEaK6OdFyGdWCMhTxxFoBwNLqpHzIuxjSu/Q=; b=xYgFnHKbTE0buTqiWWcsqSr8Ak0IL505sAcLIuOYC5Eq22CNkndbVlLqt6yJnMCh9z JrfmoUtyN0US7fj/qFYpsBsUcwRiL76QzkRlWd7bdRr0NpW0f08lNVHeuHanBR1ixc6m CNr9UC2PfKdNREF4sdvs+eKf9CciKPxvpbxzCGQDmDbDU0twf3FotCWVvn9qkPZ9Y8Xg WG2pfusVHoTKFn9jP52O/LL1jhNWEhsX1M3S+pBeMH6KwGezTT0Y8p1nyVb/hPFM4glX SdwEwQDHZNUGya0tFrLu6bV+4Zp/H6A8bDqyg0SB8GwKDbAHlcx2llVUVKQNxcd1Uz2K riww== 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=TMsk9pfgEaK6OdFyGdWCMhTxxFoBwNLqpHzIuxjSu/Q=; b=rUcKLfshnO90UEh4aZXs49zHm55Mk0AayTsyjLG/b8rilsF7YRKx0EFYVpA4t5AGHq 70j5a4tYEmxpPhrkVq5DKZFbJnwYwH2i7LRH7jIISNts8e+5bpFAvxGq+0aSDzYRoAdi IZs/nCQNtYqMyB2U1bZsPsB2ndaH9fujWue4isBgzSIQ16mH104rM+qJbDJhs1QiIYx1 j30DwWGX5Eo5aN+KqjarLD+QgpxMmPCRnQwDBsHlcSp7RDROkGOtUyZlYbiBcRX0zeUn SMcNPRMqgzOjvFdpYOZBjx60FD4zKsQTF5WlM4oehqXPagRC8CJFtP2uPPmSyRv42R3D uFYQ== X-Gm-Message-State: AKS2vOxkKTEke6meykyI/rqDujzW3nkQTOeH770M986dmaWwQJ+E1dJy /7u9ZjBUudJu2U7r X-Received: by 10.36.141.134 with SMTP id w128mr1526933itd.84.1497467153339; Wed, 14 Jun 2017 12:05:53 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id h67sm380361itb.19.2017.06.14.12.05.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 12:05:52 -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 stream information for buffered writes Date: Wed, 14 Jun 2017 13:05:33 -0600 Message-Id: <1497467134-6323-11-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497467134-6323-1-git-send-email-axboe@kernel.dk> References: <1497467134-6323-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: Jens Axboe Signed-off-by: Chris Mason --- 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..b245085e8f10 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2827,6 +2827,7 @@ static int submit_extent_page(int op, int op_flags, struct extent_io_tree *tree, bio->bi_end_io = end_io_func; bio->bi_private = tree; bio_set_op_attrs(bio, op, op_flags); + bio_set_streamid(bio, inode_streamid(page->mapping->host)); if (wbc) { wbc_init_bio(wbc, bio); wbc_account_io(wbc, page, page_size);