From patchwork Wed Jun 14 04:01:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9785307 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 0794A60325 for ; Wed, 14 Jun 2017 04:02:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1095B2844E for ; Wed, 14 Jun 2017 04:02:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05B172858E; Wed, 14 Jun 2017 04:02:31 +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 AD0A82844E for ; Wed, 14 Jun 2017 04:02:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752152AbdFNECZ (ORCPT ); Wed, 14 Jun 2017 00:02:25 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:35041 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728AbdFNECU (ORCPT ); Wed, 14 Jun 2017 00:02:20 -0400 Received: by mail-pg0-f48.google.com with SMTP id k71so69519646pgd.2 for ; Tue, 13 Jun 2017 21:02:15 -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=TeotI2KQrhDejOB+KYObyJY4BJqafS9OYVlJuc/7O2KKU+lcmemh9LVN89fUpTLLEM E179FhEsxjsgfowTkvKm03jMXk+/svEtfQ6TchAQtLmUFZNdxHoSvSBXeyt65Jo/NVy+ uPNn+s+7YS3z9iC+iJl/TT63o+K+wVRmi6kvhq1sUJ7ieJZEHWe8O80v5FC6OH1VJViu RhaUMFwsoprQ12HAaHUdFV4J+QngNadyCisQPezVLI1hsoLj9xKFL4x/ivX/U98xwJ6w K2HlieCZDvrh68ZboT72jWWh6pcsHyM3031v52WEKSeVPuVUqjTMEl9ByvO6rC4EAxVJ XlYg== 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=m47NDQrt10e3eQ4hqQ1HM0LDVWZBcyssMxUZ5vMUZUdQm2Y6B6kC3feYUTN6SGyGdy ecNHBRERatzNKpHeYb5Y5WHywp9uR8SfcjaHyGFU9yq/5kL6y1rVYbaSSqzNDxXEhvmT adup2osn5DLeRKmlK6/hNElu5FxIZ32ricHeLS+HJmuF0YiTMjf1QevQoUsz00+oC0Ge j4ZbQsHg2rDsxaHveYz6W/uw5eISxjo99WotE6h5uyr/I47jfpmZgxwiCBYeTcGUaZGg kk5/BbVgRrdtnb3j0u11OPnXHDh46rXf/ilR3mMvkgejTIJ9F2LrC1Gs0GmDcAKOSoHD 5ISw== X-Gm-Message-State: AKS2vOxQSZBNAQCtg6AqnqBgChGeoxuyOfUBW40bLp6jiCjx3LBJvSjz 7GMqkTuBWvl3I5Nc X-Received: by 10.99.96.9 with SMTP id u9mr2457759pgb.97.1497412934667; Tue, 13 Jun 2017 21:02:14 -0700 (PDT) Received: from localhost.localdomain (66.29.164.166.static.utbb.net. [66.29.164.166]) by smtp.gmail.com with ESMTPSA id f8sm30914083pfc.14.2017.06.13.21.02.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 21:02:14 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Cc: adilger@dilger.ca, Jens Axboe Subject: [PATCH 08/10] xfs: add support for passing in stream information for buffered writes Date: Tue, 13 Jun 2017 22:01:57 -0600 Message-Id: <1497412919-19400-9-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497412919-19400-1-git-send-email-axboe@kernel.dk> References: <1497412919-19400-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; }