Message ID | 173154342091.1140548.6120840735225415087.stg-ugh@frogsfrogsfrogs (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33AC2E573 for <linux-xfs@vger.kernel.org>; Thu, 14 Nov 2024 00:18:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731543501; cv=none; b=q+KCKnURLRa6JC1UIpto3ySp7Fx4iMzQSJtqFmkHbZCA+i0yLnydPnAbvXI2nFuYrswxgMEjhKYjAkCu9b5m1ZQevdrwYTVlmHb+/1MmRF62dy4dd6is/8hN7gpn/kpX0HHoTsIq/AwjKFE+cQWDCwlqfYebSvU5X1vNTJhpAyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731543501; c=relaxed/simple; bh=5wevyqEf8CGuvelHxzRHO7JCXUX74jTLN+IXJM3JRLY=; h=Date:Subject:From:To:Cc:Message-ID:MIME-Version:In-Reply-To: References:Content-Type; b=CzaZQ863jpmwjz4Wl/cIFGGsQW+HjX/8mgYjAKPYhemFS96+j7vgT56NB+zMa/PFDNSEt2FENTDkq2ZihoR0gRicrz/N7UF1R69RUPegy/oO7gpb+/nfeGKkfAN+LrTKOnRFzMpZaAc6jQg5HozspDL0ZXxr3wa7KkUXuEyRTDY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CEIA/SO/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CEIA/SO/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8395C4CEC3; Thu, 14 Nov 2024 00:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731543500; bh=5wevyqEf8CGuvelHxzRHO7JCXUX74jTLN+IXJM3JRLY=; h=Date:Subject:From:To:Cc:In-Reply-To:References:From; b=CEIA/SO/+FuQSEw/S5P4xEsRxr7ankBiYgbA+hajgVzyMYNhYhcvQbVo3vxCBZkDH JLY4JxXTjuV/Vz2Pxl5X1eR76Czi0ATAyGFeeLQ9Is2b44tFXnzOKYJerIhvkENDK6 H1YvwiZxxYd0Rfw51J80SjdavhjyMZak+61Slpmky/hO18vedMxfklyuuVqh2mp3cu iov9s15hEU50QaYl/lQFLiNoqysARRFsLLMxQBFvpuiUTeHjmPtOJ/fhizUHQooY7q Wj87WV5G1BYpxdmsVlNL730B+Sw5ZX/2WM7qlA/lmGCDaR3ouvL65pnM/g7i9ni77f Av0IYQfM/E3Vg== Date: Wed, 13 Nov 2024 16:18:20 -0800 Subject: [GIT PULL 03/10] xfs: metadata inode directory trees From: "Darrick J. Wong" <djwong@kernel.org> To: cem@kernel.org, djwong@kernel.org Cc: hch@lst.de, linux-xfs@vger.kernel.org Message-ID: <173154342091.1140548.6120840735225415087.stg-ugh@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: <linux-xfs.vger.kernel.org> List-Subscribe: <mailto:linux-xfs+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-xfs+unsubscribe@vger.kernel.org> MIME-Version: 1.0 In-Reply-To: <20241114001637.GL9438@frogsfrogsfrogs> References: <20241114001637.GL9438@frogsfrogsfrogs> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit |
Series |
[GIT,PULL,01/10] xfs: convert perag to use xarrays
|
expand
|
Hi Carlos, Please pull this branch with changes for xfs for 6.13-rc1. As usual, I did a test-merge with the main upstream branch as of a few minutes ago, and didn't see any conflicts. Please let me know if you encounter any problems. --D The following changes since commit 59e1e288697a96f2a9b71a87868f39699a84fbe0: xfs: store a generic group structure in the intents (2024-11-13 16:05:23 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/metadata-directory-tree-6.13_2024-11-13 for you to fetch changes up to ffc12626fd0ee4fc7c5f1c91d33b452e6d757acd: xfs: repair metadata directory file path connectivity (2024-11-13 16:05:28 -0800) ---------------------------------------------------------------- xfs: metadata inode directory trees [v5.6 03/10] This series delivers a new feature -- metadata inode directories. This is a separate directory tree (rooted in the superblock) that contains only inodes that contain filesystem metadata. Different metadata objects can be looked up with regular paths. Start by creating xfs_imeta{dir,file}* functions to mediate access to the metadata directory tree. By the end of this mega series, all existing metadata inodes (rt+quota) will use this directory tree instead of the superblock. Next, define the metadir on-disk format, which consists of marking inodes with a new iflag that says they're metadata. This prevents bulkstat and friends from ever getting their hands on fs metadata files. With a bit of luck, this should all go splendidly. Signed-off-by: Darrick J. Wong <djwong@kernel.org> ---------------------------------------------------------------- Darrick J. Wong (28): xfs: constify the xfs_sb predicates xfs: constify the xfs_inode predicates xfs: rename metadata inode predicates xfs: standardize EXPERIMENTAL warning generation xfs: define the on-disk format for the metadir feature xfs: iget for metadata inodes xfs: load metadata directory root at mount time xfs: enforce metadata inode flag xfs: read and write metadata inode directory tree xfs: disable the agi rotor for metadata inodes xfs: hide metadata inodes from everyone because they are special xfs: advertise metadata directory feature xfs: allow bulkstat to return metadata directories xfs: don't count metadata directory files to quota xfs: mark quota inodes as metadata files xfs: adjust xfs_bmap_add_attrfork for metadir xfs: record health problems with the metadata directory xfs: refactor directory tree root predicates xfs: do not count metadata directory files when doing online quotacheck xfs: metadata files can have xattrs if metadir is enabled xfs: adjust parent pointer scrubber for sb-rooted metadata files xfs: fix di_metatype field of inodes that won't load xfs: scrub metadata directories xfs: check the metadata directory inumber in superblocks xfs: move repair temporary files to the metadata directory tree xfs: check metadata directory file path connectivity xfs: confirm dotdot target before replacing it during a repair xfs: repair metadata directory file path connectivity fs/xfs/Makefile | 5 +- fs/xfs/libxfs/xfs_attr.c | 5 +- fs/xfs/libxfs/xfs_bmap.c | 5 +- fs/xfs/libxfs/xfs_format.h | 121 ++++++++-- fs/xfs/libxfs/xfs_fs.h | 25 +- fs/xfs/libxfs/xfs_health.h | 6 +- fs/xfs/libxfs/xfs_ialloc.c | 58 +++-- fs/xfs/libxfs/xfs_inode_buf.c | 90 ++++++- fs/xfs/libxfs/xfs_inode_buf.h | 3 + fs/xfs/libxfs/xfs_inode_util.c | 2 + fs/xfs/libxfs/xfs_log_format.h | 2 +- fs/xfs/libxfs/xfs_metadir.c | 481 +++++++++++++++++++++++++++++++++++++ fs/xfs/libxfs/xfs_metadir.h | 47 ++++ fs/xfs/libxfs/xfs_metafile.c | 52 ++++ fs/xfs/libxfs/xfs_metafile.h | 31 +++ fs/xfs/libxfs/xfs_ondisk.h | 2 +- fs/xfs/libxfs/xfs_sb.c | 12 + fs/xfs/libxfs/xfs_types.c | 4 +- fs/xfs/libxfs/xfs_types.h | 2 +- fs/xfs/scrub/agheader.c | 5 + fs/xfs/scrub/common.c | 65 ++++- fs/xfs/scrub/common.h | 5 + fs/xfs/scrub/dir.c | 10 +- fs/xfs/scrub/dir_repair.c | 20 +- fs/xfs/scrub/dirtree.c | 32 ++- fs/xfs/scrub/dirtree.h | 12 +- fs/xfs/scrub/findparent.c | 28 ++- fs/xfs/scrub/health.c | 1 + fs/xfs/scrub/inode.c | 35 ++- fs/xfs/scrub/inode_repair.c | 34 ++- fs/xfs/scrub/metapath.c | 521 ++++++++++++++++++++++++++++++++++++++++ fs/xfs/scrub/nlinks.c | 4 +- fs/xfs/scrub/nlinks_repair.c | 4 +- fs/xfs/scrub/orphanage.c | 4 +- fs/xfs/scrub/parent.c | 39 ++- fs/xfs/scrub/parent_repair.c | 37 ++- fs/xfs/scrub/quotacheck.c | 7 +- fs/xfs/scrub/refcount_repair.c | 2 +- fs/xfs/scrub/repair.c | 14 +- fs/xfs/scrub/repair.h | 3 + fs/xfs/scrub/scrub.c | 12 +- fs/xfs/scrub/scrub.h | 2 + fs/xfs/scrub/stats.c | 1 + fs/xfs/scrub/tempfile.c | 105 ++++++++ fs/xfs/scrub/tempfile.h | 3 + fs/xfs/scrub/trace.c | 1 + fs/xfs/scrub/trace.h | 42 +++- fs/xfs/xfs_dquot.c | 1 + fs/xfs/xfs_fsops.c | 4 +- fs/xfs/xfs_health.c | 2 + fs/xfs/xfs_icache.c | 74 ++++++ fs/xfs/xfs_inode.c | 19 +- fs/xfs/xfs_inode.h | 36 ++- fs/xfs/xfs_inode_item.c | 7 +- fs/xfs/xfs_inode_item_recover.c | 2 +- fs/xfs/xfs_ioctl.c | 7 + fs/xfs/xfs_iops.c | 15 +- fs/xfs/xfs_itable.c | 33 ++- fs/xfs/xfs_itable.h | 3 + fs/xfs/xfs_message.c | 51 ++++ fs/xfs/xfs_message.h | 20 +- fs/xfs/xfs_mount.c | 31 ++- fs/xfs/xfs_mount.h | 25 +- fs/xfs/xfs_pnfs.c | 3 +- fs/xfs/xfs_qm.c | 36 ++- fs/xfs/xfs_quota.h | 5 + fs/xfs/xfs_rtalloc.c | 38 +-- fs/xfs/xfs_super.c | 13 +- fs/xfs/xfs_trace.c | 2 + fs/xfs/xfs_trace.h | 102 ++++++++ fs/xfs/xfs_trans_dquot.c | 6 + fs/xfs/xfs_xattr.c | 3 +- 72 files changed, 2333 insertions(+), 206 deletions(-) create mode 100644 fs/xfs/libxfs/xfs_metadir.c create mode 100644 fs/xfs/libxfs/xfs_metadir.h create mode 100644 fs/xfs/libxfs/xfs_metafile.c create mode 100644 fs/xfs/libxfs/xfs_metafile.h create mode 100644 fs/xfs/scrub/metapath.c