On Tue, Jun 24, 2025 at 08:17:05PM +0200, Carlos Maiolino wrote: > > struct xlog { > > ... > > struct xlog_in_core *l_iclog; > > struct xlog_in_core *l_iclogs[XLOG_MAX_ICLOGS]; > > }; > > Thanks for the tip hch, but wouldn't this break the mount option? So far > the user can specify how many iclogs will be in memory, by allocating > a fixed array, we essentially lock it to 8 iclogs, no? > > Cheers, and thanks again for the review. Well, if you look at the helper I whiteboard coded below it only walks the array until the number of specified. As long as the maximum numbers of iclogs is relatively slow and/or the default is close to the maximum this seems optimal. If we every support a very huge number or default to something much lower than the default a separate allocation would be better here, but that's a trivial change.