From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33390C4363A for ; Tue, 27 Oct 2020 19:05:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C651121527 for ; Tue, 27 Oct 2020 19:05:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="HYzvqgXY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1829370AbgJ0TFl (ORCPT ); Tue, 27 Oct 2020 15:05:41 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:48948 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1829369AbgJ0TFk (ORCPT ); Tue, 27 Oct 2020 15:05:40 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09RItGod108136; Tue, 27 Oct 2020 19:05:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=O+a+vUg3ST9UuzvPnMFfy0vUUzuHRk3rbtsNMD9o6nY=; b=HYzvqgXYPohF2r5VdQVsyo+mhclAGBwdoeMCUtxrPdjE16LZS3Bt7o5EFUFacWgm+3PA w1vh6wog2H9AmBO/RPBOHj2uil2vGpWW9KoqKiFpHW+yWeFNO6OVDattdDpTVetXxgm9 T5lPLfrqWaWHjbcmouYKjK0NwKdBqfvP1e7bWMFAMpkZfC/qIp7glACseI28g6VSRZ1X EFpqNlXdY7uON41o5DVw/995vN/SuK3AkEIGRRpdNpNc5st2W05BYaSahWlQWwSauulX v0+/b4/ZABD1HB3Llq35ozqfCoJ/1bqiOcRMFQAMMTST3WKG1OB84MDCQxpchY1QHhSV 9w== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 34cc7kuv6c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Oct 2020 19:05:39 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09RItJXC019765; Tue, 27 Oct 2020 19:03:38 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 34cx6wbnjt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Oct 2020 19:03:38 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 09RJ3bIw028162; Tue, 27 Oct 2020 19:03:37 GMT Received: from localhost (/10.159.243.144) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 27 Oct 2020 12:03:37 -0700 Subject: [PATCH RFCv4 0/2] xfstests: add inode btree blocks counters to the AGI header From: "Darrick J. Wong" To: darrick.wong@oracle.com, guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Tue, 27 Oct 2020 12:03:36 -0700 Message-ID: <160382541643.1203756.12015378093281554469.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9787 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010270110 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9787 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 adultscore=0 malwarescore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010270110 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org Hi all, Years ago, Christoph diagnosed a problem where freeing an inode on a totally full filesystem could fail due to finobt expansion not being able to allocate enough blocks. He solved the problem by using the per-AG block reservation system to ensure that there are always enough blocks for finobt expansion, but that came at the cost of having to walk the entire finobt at mount time. This new feature solves that performance regression by adding inode btree block counts to the AGI header. The patches in this series amend fstests to handle the new metadata fields and to test that upgrades work properly. v2: rebase kernel to 5.9 v3: split logical changes into separate patches v4: support inobtcounts && !finobt properly If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=inobt-counters xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=inobt-counters fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=inobt-counters --- common/xfs | 16 ++++++++++++ tests/xfs/010 | 3 +- tests/xfs/030 | 2 + tests/xfs/122.out | 2 + tests/xfs/910 | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/910.out | 3 ++ tests/xfs/group | 1 + 7 files changed, 97 insertions(+), 2 deletions(-) create mode 100755 tests/xfs/910 create mode 100644 tests/xfs/910.out