From patchwork Tue Jun 13 17:15:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9784407 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 CD94B6038E 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 B3F372857E for ; Tue, 13 Jun 2017 17:15:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A68CF2858F; 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=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 61AB82858F for ; Tue, 13 Jun 2017 17:15:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753599AbdFMRPq (ORCPT ); Tue, 13 Jun 2017 13:15:46 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:36489 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753588AbdFMRPj (ORCPT ); Tue, 13 Jun 2017 13:15:39 -0400 Received: by mail-io0-f182.google.com with SMTP id y77so77592680ioe.3 for ; Tue, 13 Jun 2017 10:15:38 -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=L2dzoNahNkspe2dezNzMVaMr7Fsd4k/OQfMwOyaLjjY=; b=NQPNE5fxpTtWgEq2jDnUMhL1RVBnPvuTQxA/T+LwEaAFC+dxAG4dDTi9EopcG4s2YJ d/wR735M8EhXwN7Dcxb49ID93CmFZ6NqvIOs+Tc2UZGsiq124g4KbGeS4nomWnJbMp+r 1g0yXRIZYbwJmTcghcwU8xv7XjUiPMgDa9ZK+0cjzDSPfZLckHN3SBPWgduqCR/p8uzY 04mos1ux/OfixarJibK6h06ogGgcxJAaADfxKppQI+7bR48fveqWpblyzVP33CIFw5f5 lwQt5d+EU7h8bknfy3dRMHen7Sc/xSUfqugyOzgRyxiqCHnNwB1gLVwkcFjXhPesBej6 FHHg== 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=L2dzoNahNkspe2dezNzMVaMr7Fsd4k/OQfMwOyaLjjY=; b=odGuVCOVtz4KBIcvzae9bjQwezecYy7EcESBEp3FQwg1lEyk07ihbvImIfixmfXmA2 dOHPgm1k49ow+yhQV73SFr/Au0fwuquWzcMcgwiFWUi1HV2oeofNPJpvQphVW/h2fuw5 X72ECePo+aI1G4kWILENATmtsTCuKAu0qkQUgDWu9L8By5eDBUJEIu8v1Il/D1vKM9Wc atwY61B0RqRPYnLvURDwSkOz0CXdDG7hJnfWlEIfp8nGBAVxkC4pm3PqBcafRp+VDiNd VX1+2/kyOvVNVrsS8EVhDqeC0Jjhp0Y7WajpqqdA/CaTwgV07d9p/wfp2tsek2g+S/CV A0JA== X-Gm-Message-State: AKS2vOy8VVNj73mhAbbusoR8yUjadco2Yaqji2HM6cfZmY/LaUl9ULhL k+tI8P+blZm+x5vlswBWmg== X-Received: by 10.107.35.5 with SMTP id j5mr1252681ioj.52.1497374138247; Tue, 13 Jun 2017 10:15:38 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id y188sm6217526ity.9.2017.06.13.10.15.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 10:15:37 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 09/11] xfs: add support for passing in stream information for buffered writes Date: Tue, 13 Jun 2017 11:15:21 -0600 Message-Id: <1497374123-15286-10-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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jens Axboe Reviewed-by: Andreas Dilger --- 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; }