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: 9784403 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 2087360212 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 064582857E for ; Tue, 13 Jun 2017 17:15:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF58728676; Tue, 13 Jun 2017 17:15:47 +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 B03892857E for ; Tue, 13 Jun 2017 17:15:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753588AbdFMRPq (ORCPT ); Tue, 13 Jun 2017 13:15:46 -0400 Received: from mail-io0-f172.google.com ([209.85.223.172]:35602 "EHLO mail-io0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752033AbdFMRPj (ORCPT ); Tue, 13 Jun 2017 13:15:39 -0400 Received: by mail-io0-f172.google.com with SMTP id k93so77695312ioi.2 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=DSHbuRoBb/23YTZT6mL/Yr2a9eGEMhn8kui+4MTgof63WlFqHu6qPAvmaYxztfOE3h 2Md30jJke5Ypc16FNmSXc9/VbBY66HAWKDwcAr8EorrdRE7DjTnZ2sFUyYfy6PEUbnUX htTCFDZA+lrcKM4nGlrb6p6Fdaopf7drkho2Sfy0q4q0hNjA8MpdUbCo44ZWX4UZ2v+v kefRjwlhXWqpilPxwS30vnXcwyi0w8mSxnHdXINKsAoepW+vP71fNppAapqj44iGgrw0 HZSJ/akJEr7Viao6qAQSBL1o1GsMUv8+LKWlBLwKEe0hZqy7c9E17tMcdWAEbvjqO+uf GTUw== X-Gm-Message-State: AKS2vOzfqkgep8nq+46Z8oR4tvu66RxUpyOvcniWif7PgrTCO7QQTXdf 4XIeDuVC/tJGIQ/b9qS39A== 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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; }