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: 9785291 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 3579060325 for ; Wed, 14 Jun 2017 04:02:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E486283BD for ; Wed, 14 Jun 2017 04:02:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 334082858D; Wed, 14 Jun 2017 04:02:22 +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 B490E283BD for ; Wed, 14 Jun 2017 04:02:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750770AbdFNECS (ORCPT ); Wed, 14 Jun 2017 00:02:18 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]:33006 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbdFNECP (ORCPT ); Wed, 14 Jun 2017 00:02:15 -0400 Received: by mail-pg0-f53.google.com with SMTP id f185so69555975pgc.0 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=FHQkvpA8bh2ur9xOmyfPwohFfE1INmAoyMRXUZI6M7TTVUUJ7fG9AEVr7QRErEfFIc ZbkLMrzOPV4IqRdEbib/oha6SaE2lyBzMe/g9wVDgdr087+deBiN1bCjhafVZd2VreZO 6gTdPtM7pcxbRyb3verYXJS/3+6mTPTsdMWLL3JD9bgI+yUx//CTNVkC3DwmHx1iok4F z/FitH1dj7qJg8Z1IkqEs+zr4OkS0aOsa7g5tzA/Ppbs3efyZSKutJJTlvSt5HZqyZwR O6VaZJDEdPjiXad0kn2iD15Vev6jEgvYXaaeAKoQBo2B9IhZ5I7ThAFfjjsz5UbzYiOt N3tw== X-Gm-Message-State: AKS2vOxYfahyULD1jp+ojgMxNEy6+BWXbDEJwmVy1OX7gSgy5ND2N5wX RYChYV7DaiytNBhA6R+w4g== 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-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; }