From patchwork Wed Jun 14 04:01:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9785293 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 ECBBE60325 for ; Wed, 14 Jun 2017 04:02:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 015DB283BD for ; Wed, 14 Jun 2017 04:02:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9D772858D; Wed, 14 Jun 2017 04:02:22 +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 E30852844E for ; Wed, 14 Jun 2017 04:02:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbdFNECU (ORCPT ); Wed, 14 Jun 2017 00:02:20 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:35038 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbdFNECO (ORCPT ); Wed, 14 Jun 2017 00:02:14 -0400 Received: by mail-pg0-f41.google.com with SMTP id k71so69519447pgd.2 for ; Tue, 13 Jun 2017 21:02:13 -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=I1+Psnp8mZklQ8TrFaAjnWYNECKyn9CJkpemIW1FxHZheEM+4tUSDmmcCv7GTns4Vh xkPtyPYsV4Elwx/lq03H1nvTO72e5dJfvDnPnDL0i4PDy4Q2fy97d6xGHETppy/K/YYW Om3nD0Q9rGLvXuzHJR6J1i8mOe6tuk/eDzjv/rc1FdTnI6rzKjJYB6iBjpHYA/lg2NQG GZ+S12hneBeVr9EkxpFtU17BszLte9OXSf0mhDreowHtXUKY3OmWe81Wer2g3Lyybvyt 4ok+K1SEJRUFWVpJ5PfJVmgTY+me70Pp+I/gM0+M4ghuL3lvqHLUHMzWVXn/mDMzen+f gTqw== 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=QLF+lGQXGfU565oERB1NZMBaejimL+akLx8NZZhGRAuRnL3gGVnwAl23S4qzJhUheo JNqiWwqncA6YIlS9u6EFlARA3S1nWuTmMcQtu+TMBmufydq3yQQM5kMbxgSrOj/XfI6n 78fMuY7+BRtvnElQMkHkIJKV+UkQKzgvH1j9cVJbfzNs+wP1qCo05Hy8OMXonBDe4d5D DfHAWHm6OZf+U97MHZNb/hdvoe8fQrZkBM66ICAzYD1a4oBhcb5Bx6t3c/HTsn11EHZ0 vTORQk7G0gyVR9iQjHgpWSq84Br/TtcOKA2S3WFHaklPzgZUZBJEZXZDC67Q4AUPvLsq xwxw== X-Gm-Message-State: AKS2vOwH2jJo8zFKBYmdNtBEWk4arbpIEHXAj0Hb3gQQiws6TVFo23Ka qnXSFFMY4MO8nS36b6+OdQ== X-Received: by 10.98.166.196 with SMTP id r65mr2243986pfl.120.1497412933420; Tue, 13 Jun 2017 21:02:13 -0700 (PDT) Received: from localhost.localdomain (66.29.164.166.static.utbb.net. [66.29.164.166]) by smtp.gmail.com with ESMTPSA id f8sm30914083pfc.14.2017.06.13.21.02.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 21:02:12 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Cc: adilger@dilger.ca, Jens Axboe Subject: [PATCH 07/10] ext4: add support for passing in stream information for buffered writes Date: Tue, 13 Jun 2017 22:01:56 -0600 Message-Id: <1497412919-19400-8-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497412919-19400-1-git-send-email-axboe@kernel.dk> References: <1497412919-19400-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)