From patchwork Thu Feb 16 21:13:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13143941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27740C61DA4 for ; Thu, 16 Feb 2023 21:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229475AbjBPVNI (ORCPT ); Thu, 16 Feb 2023 16:13:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjBPVNH (ORCPT ); Thu, 16 Feb 2023 16:13:07 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84FFE301B6 for ; Thu, 16 Feb 2023 13:13:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3185FB82760 for ; Thu, 16 Feb 2023 21:13:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D070AC4339B; Thu, 16 Feb 2023 21:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676581983; bh=gl2sOMnVS5OK8gPaWW8/Ibw8Ok/RIlJS3AMKKr/Saeg=; h=Date:Subject:From:To:Cc:In-Reply-To:References:From; b=hE4XxksXrqPbQ/gCm2RgfU07UzOpn7ZWU91q7XnZZfuJ/TdLcRlDXTiHA6qJggVU/ HoMrZAwKE0D45HfenulnClz7OFL+CyO1o1unBGwGONmd1/bnUC32kz2ts3f3j7S2q+ pVmQXaQ3YNpwqX0xyhKGaTkgu2J4Md0FqA7r3Z1P1s9ECswsYqZmbGCPy1Qk4PrVki J0mLy+eUYYAt7nI1C53CInv6GgZVy/NVK0xDh1tUKHaIVu3kqJ5LJPVihnzlrkFh4j AxooiElGaKI9W/q6H8mvMUEFTPRxvxURzuTOsQ+4EGpZoyFyxRTiWQKOZrfRsMUjhR Mj3nwcHpohPLA== Date: Thu, 16 Feb 2023 13:13:03 -0800 Subject: [PATCH 1/3] mkfs: enable large extent counts by default From: "Darrick J. Wong" To: djwong@kernel.org Cc: allison.henderson@oracle.com, linux-xfs@vger.kernel.org Message-ID: <167657883073.3478343.1371429481246172738.stgit@magnolia> In-Reply-To: <167657883060.3478343.13279613574882662321.stgit@magnolia> References: <167657883060.3478343.13279613574882662321.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org From: Darrick J. Wong Format filesystems with the large extent counter feature turned on. Signed-off-by: Darrick J. Wong --- man/man8/mkfs.xfs.8.in | 7 ++++--- mkfs/xfs_mkfs.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/man/man8/mkfs.xfs.8.in b/man/man8/mkfs.xfs.8.in index 211e7b0c..4c379549 100644 --- a/man/man8/mkfs.xfs.8.in +++ b/man/man8/mkfs.xfs.8.in @@ -645,9 +645,10 @@ free space conditions. .TP .BI nrext64[= value] Extend maximum values of inode data and attr fork extent counters from 2^31 - -1 and 2^15 - 1 to 2^48 - 1 and 2^32 - 1 respectively. If the value is -omitted, 1 is assumed. This feature is disabled by default. This feature is -only available for filesystems formatted with -m crc=1. +1 and 2^15 - 1 to 2^48 - 1 and 2^32 - 1 respectively. +If the value is omitted, 1 is assumed. +This feature will be enabled when possible. +This feature is only available for filesystems formatted with -m crc=1. .TP .RE .PP diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index d3f34ef8..f355e416 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -4092,7 +4092,7 @@ main( .nodalign = false, .nortalign = false, .bigtime = true, - .nrext64 = false, + .nrext64 = true, /* * When we decide to enable a new feature by default, * please remember to update the mkfs conf files. From patchwork Thu Feb 16 21:13:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13143942 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32188C61DA4 for ; Thu, 16 Feb 2023 21:13:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbjBPVNV (ORCPT ); Thu, 16 Feb 2023 16:13:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjBPVNV (ORCPT ); Thu, 16 Feb 2023 16:13:21 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9875648E22 for ; Thu, 16 Feb 2023 13:13:20 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 343AB60C6D for ; Thu, 16 Feb 2023 21:13:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 959A2C4339B; Thu, 16 Feb 2023 21:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676581999; bh=Q+a7osUMm9ExpAm3B7NbqI/JwquB9oehO7AOp8WtOMk=; h=Date:Subject:From:To:Cc:In-Reply-To:References:From; b=HW4qDwLPtp2r6pcG5a7QMFpwZjdfTuAXaUwfPlO0Cuwvafx3rNjl0QJF6oJpPEHK0 FhSkJYnaxoqE0cGw4iUkA0+yZGw6Z+OYNXyaaZE+sAq807ExJ8flJUeRzW0JjAKOp/ dcUIvLkkqdJShbCpk6SBOwO3NL6d7novu2XSa/9QRvNlpuF9ZA0ncwXgiShozIbKIU 2UJJI11EJObVvS/d6ikLoFCfWEk3TdRWrislgXaXAfqltSjZaQV2U8yLxDoXa+cJ7d /dMYPrpcdXdhNPAxiKbv3CnlIcr2PNkMIunhFxLFXskA9Hi0XV4D7xlfWiPpMr3tOG j8Buu6YUVnLsg== Date: Thu, 16 Feb 2023 13:13:19 -0800 Subject: [PATCH 2/3] mkfs: enable reverse mapping by default From: "Darrick J. Wong" To: djwong@kernel.org Cc: allison.henderson@oracle.com, linux-xfs@vger.kernel.org Message-ID: <167657883086.3478343.5924713027573384229.stgit@magnolia> In-Reply-To: <167657883060.3478343.13279613574882662321.stgit@magnolia> References: <167657883060.3478343.13279613574882662321.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org From: Darrick J. Wong Now that the scrub part of online fsck is feature complete (scrub and health reporting are done) there's actually a compelling story for having the reverse mappings enabled. Signed-off-by: Darrick J. Wong --- man/man8/mkfs.xfs.8.in | 4 ++-- mkfs/xfs_mkfs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/man8/mkfs.xfs.8.in b/man/man8/mkfs.xfs.8.in index 4c379549..9ce8373d 100644 --- a/man/man8/mkfs.xfs.8.in +++ b/man/man8/mkfs.xfs.8.in @@ -289,8 +289,8 @@ pinpoint exactly which data has been lost when a disk error occurs. .IP By default, .B mkfs.xfs -will not create reverse mapping btrees. This feature is only available -for filesystems created with the (default) +will create reverse mapping btrees when possible. +This feature is only available for filesystems created with the (default) .B \-m crc=1 option set. When the option .B \-m crc=0 diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index f355e416..325f8617 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -4085,7 +4085,7 @@ main( .dirftype = true, .finobt = true, .spinodes = true, - .rmapbt = false, + .rmapbt = true, .reflink = true, .inobtcnt = true, .parent_pointers = false, From patchwork Thu Feb 16 21:13:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13143943 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEFE3C636D7 for ; Thu, 16 Feb 2023 21:13:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbjBPVNj (ORCPT ); Thu, 16 Feb 2023 16:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbjBPVNi (ORCPT ); Thu, 16 Feb 2023 16:13:38 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4B9548E22 for ; Thu, 16 Feb 2023 13:13:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7F41CB828F3 for ; Thu, 16 Feb 2023 21:13:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 252F5C433D2; Thu, 16 Feb 2023 21:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676582015; bh=5Vn5balPm1WW1YkS2Pr03cLZHmtXj2FVAcFH6kl20VY=; h=Date:Subject:From:To:Cc:In-Reply-To:References:From; b=mi+0X962hmG1Lj51/RFfMS2FiSb/ghKvAn1zN8ceiOWyqqO5wq5XgF4fy3ZqfxLCU H7oyABgxN7rz/1Zk/fq+0SsFpcpBm8264M2UkmLIxmCDjunZkv3GOwt8VNKi2/1w0m VWKkKBYhajy7hG8cVy4mK95mDBXw0BiYgFaTvapD758TrKbmp6zsdQXrFUYywuuaQc nKC0qNf2zhZo0wRWAVdgSQjsbUiNlAwBLuzmQCVfInwUjhsmc2WyWY4lTUeHvpoh+0 xvUgvGKJpEU1+9+JPT+u/mkJ8gBrG/oSzYNUIDcl47I6O9O8GlAOJfQ1BVcnowCrWr L87eK9P2C0dzQ== Date: Thu, 16 Feb 2023 13:13:34 -0800 Subject: [PATCH 3/3] mkfs: enable parent pointers by default From: "Darrick J. Wong" To: djwong@kernel.org Cc: allison.henderson@oracle.com, linux-xfs@vger.kernel.org Message-ID: <167657883099.3478343.13727736396375441177.stgit@magnolia> In-Reply-To: <167657883060.3478343.13279613574882662321.stgit@magnolia> References: <167657883060.3478343.13279613574882662321.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org From: Darrick J. Wong Signed-off-by: Darrick J. Wong --- mkfs/xfs_mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 325f8617..5f090c08 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -4088,7 +4088,7 @@ main( .rmapbt = true, .reflink = true, .inobtcnt = true, - .parent_pointers = false, + .parent_pointers = true, .nodalign = false, .nortalign = false, .bigtime = true,