On Mon, May 11, 2026 at 10:36 PM Christoph Hellwig <[email protected]> wrote: > > Make the core swap code calculate sis->pages, nr_extents and the span, > re-set sis->max based on it and don't require passing the current offset > into the swap file to swap_add_extent as all that can trivially be > calculated internally. Also truncate the spans based on the available > information. > > All this removes a lot of boilerplate code in the callers. > > Signed-off-by: Christoph Hellwig <[email protected]>
Very nice cleanup. Acked-by: Chris Li <[email protected]> Chris _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
