anolis: mm: clear I_KIDLED_YOUNG synchronously when shrink_slab
ANBZ: #30476
shrink_slab will drop the reclaimable slab, but it failes to reclaim them because I_KIDLED_YOUNG flags prevent it to be released. I_KIDLED_YOUNG and I_REFERENCED is set synchronously, hence it also clear synchronously to avoid unexpected issue.
Meanwhile, Modify the I_KIDLED_YOUNG flags value from int to UL, which avoid the overflow
Fixes: fa73812bcafe (“anolis: mm: kidled: Add a new *KIDLED_YOUNG flag to replace *REFERENCED checking”) Reviewed-by: Baolin Wang baolin.wang@linux.alibaba.com Signed-off-by: zhongjiang-ali zhongjiang-ali@linux.alibaba.com Reviewed-by Baolin Wang baolin.wang@linux.alibaba.com Acked-by Joseph Qi joseph.qi@linux.alibaba.com Link: https://gitee.com/anolis/cloud-kernel/pulls/6467
Linux kernel
There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. Please read Documentation/admin-guide/README.rst first.
In order to build the documentation, use
make htmldocsormake pdfdocs. The formatted documentation can also be read online at:There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.