Message ID | 154630949977.8108.5299695335905354232.stgit@magnolia (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-xfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A87B14DE for <patchwork-linux-xfs@patchwork.kernel.org>; Tue, 1 Jan 2019 02:25:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D89B2785D for <patchwork-linux-xfs@patchwork.kernel.org>; Tue, 1 Jan 2019 02:25:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BA0828C3B; Tue, 1 Jan 2019 02:25:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY 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 2CBF92785D for <patchwork-linux-xfs@patchwork.kernel.org>; Tue, 1 Jan 2019 02:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729115AbfAACZD (ORCPT <rfc822;patchwork-linux-xfs@patchwork.kernel.org>); Mon, 31 Dec 2018 21:25:03 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:40838 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729114AbfAACZD (ORCPT <rfc822;linux-xfs@vger.kernel.org>); Mon, 31 Dec 2018 21:25:03 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x012OIN0179069 for <linux-xfs@vger.kernel.org>; Tue, 1 Jan 2019 02:25:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=wtSMa76n8xvOuKWKShwe4ISQduuU6iSLFeXxbhdJncQ=; b=CCni227WPasZyl0FBf1Ks2Hmh1rHumU1XLG9FhQe6NBQTomOcB34W1kWOK9V6BfIa4T8 WL8w8ECWAcjMDhbNML6iv0BJ3xf3GfAWz36HM1otQtYlDWLA/Wb0L7yZ6c1FioLuu8+Y k88WTIoh7vkTDazMLMPJpkUsUiVkOnbIJph+MBq7Cw93/lEisZh5TzD7uBij29F+Zl3A e/spFcgBWmYWt6Tw4ZgjLh5HrJYlfqkVSKDVdwmG990P93ML8iyVR6f/BHySnhHttLXq tzuHbfUIEOfXfE4OXfgo9620AgO4YGJhUHrukKSDCScaOZMNEwlWV2A8W7DKHt6o1NQn pQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2pp1jqx477-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <linux-xfs@vger.kernel.org>; Tue, 01 Jan 2019 02:25:02 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x012P1Oq019663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <linux-xfs@vger.kernel.org>; Tue, 1 Jan 2019 02:25:01 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x012P0q0009376 for <linux-xfs@vger.kernel.org>; Tue, 1 Jan 2019 02:25:01 GMT Received: from localhost (/10.159.150.85) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 31 Dec 2018 18:25:00 -0800 Subject: [PATCH 06/20] xfs: realtime rmap btree transaction reservations From: "Darrick J. Wong" <darrick.wong@oracle.com> To: darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Mon, 31 Dec 2018 18:24:59 -0800 Message-ID: <154630949977.8108.5299695335905354232.stgit@magnolia> In-Reply-To: <154630945466.8108.16578904812191021263.stgit@magnolia> References: <154630945466.8108.16578904812191021263.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9123 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=878 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901010020 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-xfs.vger.kernel.org> X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
xfs: add realtime reverse-mapping support
|
expand
|
diff --git a/fs/xfs/libxfs/xfs_trans_resv.c b/fs/xfs/libxfs/xfs_trans_resv.c index 33cc35159088..477c67f1faa7 100644 --- a/fs/xfs/libxfs/xfs_trans_resv.c +++ b/fs/xfs/libxfs/xfs_trans_resv.c @@ -74,7 +74,8 @@ xfs_allocfree_log_count( blocks = num_ops * 2 * (2 * mp->m_ag_maxlevels - 1); if (xfs_sb_version_hasrmapbt(&mp->m_sb)) - blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); + blocks += max(num_ops * (2 * mp->m_rmap_maxlevels - 1), + num_ops * (2 * mp->m_rtrmap_maxlevels - 1)); if (xfs_sb_version_hasreflink(&mp->m_sb)) blocks += num_ops * (2 * mp->m_refc_maxlevels - 1);