On 1/12/2026 10:44 PM, Wu Bo wrote:
ADDRS_PER_INODE and ADDRS_PER_BLOCK are macros of a function, and if the compiler does not optimize the code (-O0 for example), they would be called in every single loop, which could cause significant performance drops in some cases.This scenario has been found before, refer to: Commit: 1bb669e ("fsck.f2fs: avoid unnecessary recalculation") To avoid this performance drop as much as possible, I changed the function to 'inline' definition, which could mitigate such cases in the future. Signed-off-by: Wu Bo <[email protected]>
Reviewed-by: Chao Yu <[email protected]> Thanks, _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
