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: 9787295 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 D8F8560325 for ; Wed, 14 Jun 2017 19:06:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC5EA23D5E for ; Wed, 14 Jun 2017 19:06:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1250268AE; Wed, 14 Jun 2017 19:06:09 +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 72EAB23D5E for ; Wed, 14 Jun 2017 19:06:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598AbdFNTGI (ORCPT ); Wed, 14 Jun 2017 15:06:08 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:33034 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072AbdFNTF5 (ORCPT ); Wed, 14 Jun 2017 15:05:57 -0400 Received: by mail-io0-f169.google.com with SMTP id t87so6317934ioe.0 for ; Wed, 14 Jun 2017 12:05:56 -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=gtzEi+nvCsGJpqrVzxFRqAkq5CPdkZTEHTAPpNJc8eO5FVMidZEFypjkHOwQUUhL7f 7wr9Y9D40x08nVAhdXpGi8gp+3CMvytoOvRDhqh6g1CCN1/tAqsaJ1+Or3CR2SbpoCJc 7m7JSWY9gieaOEsDv1MFzK1/3T0dMFGN0cCXYEc/d+kLtqjjQCuYrmU81U2BqPEj9nmK b2S8zzJttKRv1CVodHUxeDZ/+vPQOwvqel2niHEK0NlHbhKivLDuPjrHb09y8dVnRl9Q y58pVSYKBsAaEBlkyiq9k8AsNA0DsKApVc5j3qRrVFXKI3D3kwcoDzWKjuNABW4TYnoZ 3t0w== X-Gm-Message-State: AKS2vOzzqPse7CqcnITpx+7TzPWhcoH9a+NXsa3E6J2PwXqxTOO4O0gT Cv/hoUeAc8nSfWYZ 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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; }