From patchwork Tue Jun 13 17:15:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9784409 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 959B960212 for ; Tue, 13 Jun 2017 17:15:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B8112857E for ; Tue, 13 Jun 2017 17:15:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7018F28676; Tue, 13 Jun 2017 17:15:50 +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 0BDBB2857E for ; Tue, 13 Jun 2017 17:15:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753635AbdFMRPr (ORCPT ); Tue, 13 Jun 2017 13:15:47 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:33945 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753578AbdFMRPi (ORCPT ); Tue, 13 Jun 2017 13:15:38 -0400 Received: by mail-io0-f181.google.com with SMTP id i7so77607849ioe.1 for ; Tue, 13 Jun 2017 10:15:38 -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=VnX3npWHrO6k3nPLBy9lGz7mobk9Ay6Fj8ee+IUBxEo=; b=PpbkSV1qMp33hmd4KwNahW6awo5YxYRGau24DccMl7UgYZPAJeitFSe6oJ2/xMxjHv Fd1ZIwqexE7xRoTJANfDcYcAioHwIU9jMO0rxzU7o6cy/4sKtCulzXY3BxVcJ44ExjsX pYfXbvszQ6OWs48l4fsZN728fV95K/6KvQmJs1gkpoeAOL5ppZDF8DjAyIS81Xso5h3x GRcrlhqg+KlxafhdRrhEC1dOgccUV4ndS2bCErzeZ+tQsYvXOwDAHLjhgICdhA1zWeoK Oatg7lXs2Fp3R0NpLFDZmZkenY3KsP5hVR3luyeoD1Z/YmioP8+CAEXdTi3/7rcyPcFk uJ1A== 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=VnX3npWHrO6k3nPLBy9lGz7mobk9Ay6Fj8ee+IUBxEo=; b=K1dBU5h16k77eGvgCVc0hM36lbDORdb0O1tuHDMQ9GbilAk6juQeTGG4X6sDEjbStR iSn0ZAa+WJ6ELOEA3RHPEh1mYBUx8oLZL82FwNkWIVAOTrBd9ZXpAaFaP2IP05q2/h3T HhLoXHSvsiadG1gbEZyNlkeRb/FY+CtyAX7+o9UPHYeYehcqnZiV14xnaPtsjq2LoGgP /SJ7jUV/G+hCs1kKVp5syr5y9svWjKB9M90JyvaCbU/c3qyuEQGsvyfziwVXMhfi3ypg 3AvmGS4JcMVKk148BA3436LxZMtVo8T3aipdzRJhulSOiv0P6Pr9M8/Yp2K2gePSRsn3 P7Og== X-Gm-Message-State: AKS2vOwN0qDIxtvmRsD3Dt+XqsnM33opWUjEzLQHkiQQI8ZuDzaEIZZh sPtQu+kzUI6701eOTZ+FWA== X-Received: by 10.107.169.220 with SMTP id f89mr1264619ioj.97.1497374137205; Tue, 13 Jun 2017 10:15:37 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id y188sm6217526ity.9.2017.06.13.10.15.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 10:15:36 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 08/11] ext4: add support for passing in stream information for buffered writes Date: Tue, 13 Jun 2017 11:15:20 -0600 Message-Id: <1497374123-15286-9-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497374123-15286-1-git-send-email-axboe@kernel.dk> References: <1497374123-15286-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 Signed-off-by: Jens Axboe Reviewed-by: Andreas Dilger --- 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)