Series |
[GIT,PULL,1/22] xfs: design documentation for online fsck
|
expand
-
-
[GIT,PULL,1/22] xfs: design documentation for online fsck
-
[GIT,PULL,2/22] xfs: make intent items take a perag reference
-
[GIT,PULL,3/22] xfs: pass perag references around when possible
-
[GIT,PULL,4/22] xfs_scrub: fix licensing and copyright notices
-
[GIT,PULL,5/22] xfs: drain deferred work items when scrubbing
-
[GIT,PULL,6/22] xfs: standardize btree record checking code
-
[GIT,PULL,7/22] xfs: hoist scrub record checks into libxfs
-
[GIT,PULL,8/22] xfs: fix rmap btree key flag handling
-
[GIT,PULL,9/22] xfs: enhance btree key scrubbing
-
[GIT,PULL,10/22] xfs: detect incorrect gaps in refcount btree
-
[GIT,PULL,11/22] xfs: detect incorrect gaps in inode btree
-
[GIT,PULL,12/22] xfs: detect incorrect gaps in rmap btree
-
[GIT,PULL,13/22] xfs: fix iget/irele usage in online fsck
-
[GIT,PULL,14/22] xfs: fix bugs in parent pointer checking
-
[GIT,PULL,15/22] xfs: fix iget usage in directory scrub
-
[GIT,PULL,16/22] xfs: merge bmap records for faster scrubs
-
[GIT,PULL,17/22] xfs: detect mergeable and overlapping btree records
-
[GIT,PULL,18/22] xfs: clean up memory management in xattr scrub
-
[GIT,PULL,19/22] xfs: rework online fsck incore bitmap
-
[GIT,PULL,20/22] xfs: strengthen rmapbt scrubbing
-
[GIT,PULL,21/22] xfs: fix ascii-ci problems, then kill it
-
[GIT,PULL,22/22] xfs: rollup of various bug fixes
|
Hi Dave, Please pull this branch with changes for xfs. 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 2bea8df0a52b05bc0dddd54e950ae37c83533b03: xfs: always scrub record/key order of interior records (2023-04-11 19:00:09 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/scrub-detect-refcount-gaps-6.4_2023-04-11 for you to fetch changes up to 7ac14fa2bd22e99a06ae16382b394f697cfe2b8a: xfs: ensure that all metadata and data blocks are not cow staging extents (2023-04-11 19:00:12 -0700) ---------------------------------------------------------------- xfs: detect incorrect gaps in refcount btree [v24.5] The next few patchsets address a deficiency in scrub that I found while QAing the refcount btree scrubber. If there's a gap between refcount records, we need to cross-reference that gap with the reverse mappings to ensure that there are no overlapping records in the rmap btree. If we find any, then the refcount btree is not consistent. This is not a property that is specific to the refcount btree; they all need to have this sort of keyspace scanning logic to detect inconsistencies. To do this accurately, we need to be able to scan the keyspace of a btree (which we already do) to be able to tell the caller if the keyspace is empty, sparse, or fully covered by records. The first few patches add the keyspace scanner to the generic btree code, along with the ability to mask off parts of btree keys because when we scan the rmapbt, we only care about space usage, not the owners. The final patch closes the scanning gap in the refcountbt scanner. v23.1: create helpers for the key extraction and comparison functions, improve documentation, and eliminate the ->mask_key indirect calls Signed-off-by: Darrick J. Wong <djwong@kernel.org> ---------------------------------------------------------------- Darrick J. Wong (6): xfs: refactor converting btree irec to btree key xfs: refactor ->diff_two_keys callsites xfs: replace xfs_btree_has_record with a general keyspace scanner xfs: implement masked btree key comparisons for _has_records scans xfs: check the reference counts of gaps in the refcount btree xfs: ensure that all metadata and data blocks are not cow staging extents fs/xfs/libxfs/xfs_alloc.c | 11 +- fs/xfs/libxfs/xfs_alloc.h | 4 +- fs/xfs/libxfs/xfs_alloc_btree.c | 28 ++++- fs/xfs/libxfs/xfs_bmap_btree.c | 19 +++- fs/xfs/libxfs/xfs_btree.c | 208 +++++++++++++++++++++++++++---------- fs/xfs/libxfs/xfs_btree.h | 141 ++++++++++++++++++++++++- fs/xfs/libxfs/xfs_ialloc_btree.c | 22 +++- fs/xfs/libxfs/xfs_refcount.c | 11 +- fs/xfs/libxfs/xfs_refcount.h | 4 +- fs/xfs/libxfs/xfs_refcount_btree.c | 21 +++- fs/xfs/libxfs/xfs_rmap.c | 15 ++- fs/xfs/libxfs/xfs_rmap.h | 4 +- fs/xfs/libxfs/xfs_rmap_btree.c | 61 ++++++++--- fs/xfs/libxfs/xfs_types.h | 12 +++ fs/xfs/scrub/agheader.c | 5 + fs/xfs/scrub/alloc.c | 7 +- fs/xfs/scrub/bmap.c | 11 +- fs/xfs/scrub/btree.c | 24 ++--- fs/xfs/scrub/ialloc.c | 2 +- fs/xfs/scrub/inode.c | 1 + fs/xfs/scrub/refcount.c | 124 ++++++++++++++++++++-- fs/xfs/scrub/rmap.c | 6 +- fs/xfs/scrub/scrub.h | 2 + 23 files changed, 612 insertions(+), 131 deletions(-)