diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2024-11-20 16:20:42 -0800 |
|---|---|---|
| committer | Darrick J. Wong <djwong@kernel.org> | 2024-12-23 13:06:09 -0800 |
| commit | 6a849bd81b69ccbda5b766cc700f0be86194e4d1 (patch) | |
| tree | 1e3f61a7626351d96401b190a7e47e35e840b25c /fs/xfs/libxfs/xfs_rtrmap_btree.c | |
| parent | c6904f6788b79e8d2275a55cbb71b4992be29d92 (diff) | |
xfs: online repair of the realtime rmap btree
Repair the realtime rmap btree while mounted. Similar to the regular
rmap btree repair code, we walk the data fork mappings of every realtime
file in the filesystem to collect reverse-mapping records in an xfarray.
Then we sort the xfarray, and use the btree bulk loader to create a new
rtrmap btree ondisk. Finally, we swap the btree roots, and reap the old
blocks in the usual way.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtrmap_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_rtrmap_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_rtrmap_btree.c b/fs/xfs/libxfs/xfs_rtrmap_btree.c index 19e5109c3683..6bf1b253c247 100644 --- a/fs/xfs/libxfs/xfs_rtrmap_btree.c +++ b/fs/xfs/libxfs/xfs_rtrmap_btree.c @@ -660,7 +660,7 @@ xfs_rtrmapbt_compute_maxlevels( } /* Calculate the rtrmap btree size for some records. */ -static unsigned long long +unsigned long long xfs_rtrmapbt_calc_size( struct xfs_mount *mp, unsigned long long len) |