Re: [PATCH 1/6] xfs: fix xfs_rtrmapbt_mem_cursor for non-rmap filesystems
Christoph Hellwig <[email protected]>
| Newsgroups | org.kernel.vger.linux-xfs,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 12, 2026 at 10:25:40PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <[email protected]> > > It's possible to construct an in-memory rtrmap btree for filesystems > that don't have the rmap feature enabled. The kernel doesn't do this, > but xfs_repair will, if asked to reindex a filesystem that has rtreflink > enabled but not rtrmap. Therefore, we must create the cursor with > enough levels to handle a maximally sized btree possible. Should repair initialize m_rtrmap_maxlevels instead of overallocating in the kernel?