From patchwork Wed Jun 14 19:05:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9787275 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 616CB6038E for ; Wed, 14 Jun 2017 19:05:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 553CB23D5E for ; Wed, 14 Jun 2017 19:05:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A2AA268AE; Wed, 14 Jun 2017 19:05:57 +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 E518C24B44 for ; Wed, 14 Jun 2017 19:05:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752092AbdFNTFz (ORCPT ); Wed, 14 Jun 2017 15:05:55 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:36373 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbdFNTFu (ORCPT ); Wed, 14 Jun 2017 15:05:50 -0400 Received: by mail-it0-f43.google.com with SMTP id m47so5828994iti.1 for ; Wed, 14 Jun 2017 12:05:50 -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=Hx6j32GjHuuuDKSJE0U585xvv0cQQb3Xi8nZRDXdyYI=; b=y6/r8LD5QsInAbUuscXo/xFrICPk0ewZYArRO9m2fGveJeVjJ5zxYXlfnvPnQQKd1b UwjXbQRvYlmMBzAlmfKRY5XPwDUfICPZcPU/gRi8IwKXAhGakskpAaqd0BmhA4rxhmEC vA4tgobHOO6q/dkekYQ0z6DwxkcCIrVLozFEIa2xaJ7dSUf5EMSfzJln4R6HwWpu67ek y6jiFOfXoSBHoWjZjDyG+UbvoK6vNveJSLv3b2m5clsiOAvNIIyRhFZhObd0DBLo5CwT XCL+ABsHmRhmtzgUENL1B58lddDU2buMYr3hOgD1QVHgMrmEPEVNsnzjWEsSMLqMTuUx DTUQ== 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=Hx6j32GjHuuuDKSJE0U585xvv0cQQb3Xi8nZRDXdyYI=; b=Zs+FQRk6vGUhjM79BUQA/oWez0mWMOx2BsN6JuhC5wjVK4yq4GsMDDi1rSdpnwCtx3 ClDUTtEnMkZwyKF7FW/OPEL7o5ahchZDpn4Xg0VqoGatAZ8pyu+SujRnZYpQYdrNMD7c fg8BCzYPfabmLUqRh/uhFtWsXobwo9PrddGkYP8TmeeRBuJceqRvfZiXojVKb6bveBPQ W125/D3L/Df1IKuX/pK+AYRX6bBONIWuOXglKjpTvYUuNhJZc12b5ZnECzZPE6zY/LY9 WMhvBjVqi0MnsdHoDMJIKcJdp1PzUjB6xZk4vQcBJd9OEwUkTkjkXYLqL6v5OVAgsQZH U+EA== X-Gm-Message-State: AKS2vOwKZBEabis8n93GKu/eLPRH63ROAetYpnLpkOh3akbnc7tzAH5G IA65RoqLECt7eOlP X-Received: by 10.36.208.196 with SMTP id m187mr1575950itg.84.1497467149642; Wed, 14 Jun 2017 12:05:49 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id h67sm380361itb.19.2017.06.14.12.05.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 12:05:49 -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 08/11] ext4: add support for passing in stream information for buffered writes Date: Wed, 14 Jun 2017 13:05:31 -0600 Message-Id: <1497467134-6323-9-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 --- fs/ext4/page-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 1a82138ba739..033b5bfa4e0b 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -350,6 +350,7 @@ void ext4_io_submit(struct ext4_io_submit *io) int io_op_flags = io->io_wbc->sync_mode == WB_SYNC_ALL ? REQ_SYNC : 0; bio_set_op_attrs(io->io_bio, REQ_OP_WRITE, io_op_flags); + bio_set_streamid(io->io_bio, inode_streamid(io->io_end->inode)); submit_bio(io->io_bio); } io->io_bio = NULL; @@ -396,6 +397,7 @@ static int io_submit_add_bh(struct ext4_io_submit *io, ret = io_submit_init_bio(io, bh); if (ret) return ret; + bio_set_streamid(io->io_bio, inode_streamid(inode)); } ret = bio_add_page(io->io_bio, page, bh->b_size, bh_offset(bh)); if (ret != bh->b_size)