Merge tag 'repair-file-mappings-6.8_2023-12-15' of https://git.kernel.org/pub/scm...
authorChandan Babu R <chandanbabu@kernel.org>
Sat, 16 Dec 2023 03:14:55 +0000 (08:44 +0530)
committerChandan Babu R <chandanbabu@kernel.org>
Sat, 16 Dec 2023 03:14:55 +0000 (08:44 +0530)
commit98e63b91cd4310aed82e8dac736db47938882bc7
tree829f2db0041ddd0eeee28ed387ab63696ed20c05
parent7b63ce86f9d4ea16695890d8cbd9b76f6b03642f
parentdbbdbd0086320a026903ca34efedb6abf55230ed
Merge tag 'repair-file-mappings-6.8_2023-12-15' of https://git./linux/kernel/git/djwong/xfs-linux into xfs-6.8-mergeB

xfs: online repair of file fork mappings

In this series, online repair gains the ability to rebuild data and attr
fork mappings from the reverse mapping information.  It is at this point
where we reintroduce the ability to reap file extents.

Repair of CoW forks is a little different -- on disk, CoW staging
extents are owned by the refcount btree and cannot be mapped back to
individual files.  Hence we can only detect staging extents that don't
quite look right (missing reverse mappings, shared staging extents) and
replace them with fresh allocations.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
* tag 'repair-file-mappings-6.8_2023-12-15' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: repair problems in CoW forks
  xfs: create a ranged query function for refcount btrees
  xfs: refactor repair forcing tests into a repair.c helper
  xfs: repair inode fork block mapping data structures
  xfs: reintroduce reaping of file metadata blocks to xrep_reap_extents