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: 9784405 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 BFAA160212 for ; Tue, 13 Jun 2017 17:15:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A386528676 for ; Tue, 13 Jun 2017 17:15:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94AEA286C4; Tue, 13 Jun 2017 17:15:48 +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 373F52857E for ; Tue, 13 Jun 2017 17:15:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753636AbdFMRPr (ORCPT ); Tue, 13 Jun 2017 13:15:47 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:33944 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753573AbdFMRPi (ORCPT ); Tue, 13 Jun 2017 13:15:38 -0400 Received: by mail-io0-f182.google.com with SMTP id i7so77607785ioe.1 for ; Tue, 13 Jun 2017 10:15:37 -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=DziW/eVOQX1aa2kE7uUBfsNocDRgERgl/I+r9lslJkM1PdBacWdGgS0WZCcMXpGub6 KLCHy75cAF2AtnuiR0FjcVGQuMm+XXu2vkMpaqzXSX1pkZ5QefukI8SWlr7BZrd1ZqB4 y8K4HRF34U26DCFkRc5mEM43hAJnIGdbb8KUB6RHbRKG+w1BYH9AFIYye2unygApxZss V3jlfURNCVzS1wAgs1eRZ0yANbOg6ay3s41rMiH/MFgXXd3BpIG9cevNSSZwgXbob2ai c2gjg8g1TnVPPqGG4UBHzbec70zGzyuNzWSbypIQq94ihkhUbJ3l7dKGm5wFlE7TzymY 2sMw== X-Gm-Message-State: AKS2vOxyj2hVOH4VSq03v9YbsAVarz0jKlcK/VwBJH5onmKbBSrliPaI YQ0seh7P6bOqE+ibEe2tpw== 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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)