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: 9787277 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 6437C60325 for ; Wed, 14 Jun 2017 19:05:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57A8323D5E for ; Wed, 14 Jun 2017 19:05:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CAEB268AE; Wed, 14 Jun 2017 19:05:58 +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 EEE2623D5E for ; Wed, 14 Jun 2017 19:05:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752094AbdFNTFz (ORCPT ); Wed, 14 Jun 2017 15:05:55 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:35777 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072AbdFNTFu (ORCPT ); Wed, 14 Jun 2017 15:05:50 -0400 Received: by mail-it0-f54.google.com with SMTP id m62so5879718itc.0 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=daShYrTdbGQb5xy69A8RLB4/jg8/+Y6IV3+8boSTefwQF9/LFCmZsuRkjb0Q03iNm+ 1p8dG592+T4xAPmEPqtK4eGB0EvPeV+P/4IuHlIpFTfPVZ2lej9selzYFuatPExGAeY2 1RosRKo8fRbQjYZPfgeZW2cVFsaCG1vsnJY0gKGV36Eap7WKXj8domZVYEJ5RuKSH40S eltIvaO+qSYFClyUTKu1UbATTC0NszAk2VtBTpzAxkSqP2exKLm5KeWTrgjXnYWytoKn cj2HEy13qk1ZR/GnPKA+k3wwYtf1LRrpwpVjCgR+C7YRNutgLh3vC24L8GvyMjoGrZ5+ vJVQ== X-Gm-Message-State: AKS2vOwFSJC/RPXkJ9MrEPiIgUCoFMGiYuduaov37OkR/XcO6x3wtwqL r79Vj4WZou9K+vx2y8oFLA== 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-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)