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: 9785295 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 4A3916038E for ; Wed, 14 Jun 2017 04:02:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 536AA2844E for ; Wed, 14 Jun 2017 04:02:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 481592858D; Wed, 14 Jun 2017 04:02:23 +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 E065228589 for ; Wed, 14 Jun 2017 04:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbdFNECU (ORCPT ); Wed, 14 Jun 2017 00:02:20 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:36303 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbdFNECO (ORCPT ); Wed, 14 Jun 2017 00:02:14 -0400 Received: by mail-pg0-f44.google.com with SMTP id a70so69502550pge.3 for ; Tue, 13 Jun 2017 21:02:14 -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=XZHDfLAC9L+i0GT4XjBjCSkIe4IEJriw6A7O+XSz/x1q7PIQ3ly0fE8epSIe4PZI4l ii/epiUul8DXEoNOJWr+mGqBZ3cNalh4K3Zm6lFbe8zWncZKcgY/8vJVHRtwNRjQf3Dt btjmF2lgeWx/SQ4oL8TvBjFEkL1qA1yOdxniB7FINomSCCbJtOB/aI2uiFJ3/QctdTUF 8lhiQ6YBt663idQ3L/yaK52mJBWzL8UBJire9Gx7TPT+xYlpZdPHZu/XCnPaSiW+qqZs 9trosfuw84HrrDCMVOmkaUTjT1RTXzohupiGRUR57YsoIxIVdFonOhsG6Mi4Eef32NiN YIbA== X-Gm-Message-State: AKS2vOzNxduporyhYSmLWl93kAXqLUnSZNg5VGXhk9qO5t1B2smjUzSy gR1wZ6oGet9RJGYqTrJ1FA== 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-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: 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)