From patchwork Wed Jun 14 19:05:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9787279 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 3DBC060325 for ; Wed, 14 Jun 2017 19:05:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3194223D5E for ; Wed, 14 Jun 2017 19:05:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26958268AE; Wed, 14 Jun 2017 19:05:59 +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 BEF9C23D5E for ; Wed, 14 Jun 2017 19:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752088AbdFNTFy (ORCPT ); Wed, 14 Jun 2017 15:05:54 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:33035 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbdFNTFw (ORCPT ); Wed, 14 Jun 2017 15:05:52 -0400 Received: by mail-io0-f170.google.com with SMTP id t87so6317969ioe.0 for ; Wed, 14 Jun 2017 12:05:51 -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=RVvkeF+PyoFFjSAHo/oJQj6YuVymcGROU3qPzw48Uew=; b=ZWyW4xc+//e85cTrKZt5y1EZmF66NDV5FzZNtEaLjejlBVsoTl4tcmxFDPSvNRtf1m y5Efp1OQgogOe80pp6Mk3EOHQ0ia2i8qC9+0x3louPySCyftWj6GXQKMGcoJk2yUW+mE n0RaobGaCxlM5Cgln8S8btbMIhsqrypCe5bjEQy+wiOcfPE4HZoA0vq1XxXaEEGwkNEe zYTlbTdj/BSxe+4FFd4hjjBclyAftBK3LlLFn7dULcSolMXHrfzS+LpFaYfsme1hui5t Q7kyrgidPIZgq5zVi6yeoATvGr5lIAvAR03Mym40MKrb2O5w+yElsNnkSUsplBwu3qHy 5q8g== 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=RVvkeF+PyoFFjSAHo/oJQj6YuVymcGROU3qPzw48Uew=; b=b401//a9S0InsofBuiYs82Dg0dp/FdWNrc4O15oRitHl5updzfXmb2ytt9qPunE44Q FVzlE/VhI6pcyCDnoVzVcjTshqN8kuxbAsA94y7HX5PprpHH4iiZusj8hH3Jr9hEUhUU 0GGDYwKgVuM5VelrsnhGf0TI/QR6adAbFbtCcvd6Uq+SX/53EXFYSORmfL3WmAYBDbuA /0RPv5WKbn72GUyRMlt2cNWeBb2O7dplskDhZsTClV0qb4AFi+og87NXX8YQv1XW+OJh aHgEhuFzfgZ79paSaIr6byvL/ir50u6E1+y6GwR2jN3tF/h/0D78MZoOijm5YV0EfMQ5 L77w== X-Gm-Message-State: AKS2vOzbo58qAoEsIUlQgVnZDSkQV8hHOGPTtp7XkBN9imjfur33Hx3Y XSDAtdf3zR3N5p0Xc+vflQ== X-Received: by 10.107.172.5 with SMTP id v5mr1562130ioe.63.1497467151203; Wed, 14 Jun 2017 12:05:51 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id h67sm380361itb.19.2017.06.14.12.05.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 12:05:50 -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 09/11] xfs: add support for passing in stream information for buffered writes Date: Wed, 14 Jun 2017 13:05:32 -0600 Message-Id: <1497467134-6323-10-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/xfs/xfs_aops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 09af0f7cd55e..9770be0140ad 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -505,6 +505,7 @@ xfs_submit_ioend( return status; } + bio_set_streamid(ioend->io_bio, inode_streamid(ioend->io_inode)); submit_bio(ioend->io_bio); return 0; } @@ -564,6 +565,7 @@ xfs_chain_bio( bio_chain(ioend->io_bio, new); bio_get(ioend->io_bio); /* for xfs_destroy_ioend */ ioend->io_bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc); + bio_set_streamid(ioend->io_bio, inode_streamid(ioend->io_inode)); submit_bio(ioend->io_bio); ioend->io_bio = new; }