From: Ran Xiaokai <ran.xiaokai@zte.com.cn>
This is v3 of the refactor of thpsize_shmem_enabled_store() and
thpsize_shmem_enabled_show() series.
Changes since v2:
- Fix subject prefix to "mm: shmem:" as suggested by Baolin.
- Some changes according to Lorenzo's comments:
- Add cover letter and fix threading.
- Add THP maintainers to the cc list.
- Document the behavioral change regarding start_stop_khugepaged() in commit message.
- Improve single letter variable names.
- Simplify error handling and return values.
Ran Xiaokai (2):
mm: shmem: refactor thpsize_shmem_enabled_store() with
sysfs_match_string()
mm: shmem: refactor thpsize_shmem_enabled_show() with helper arrays
mm/shmem.c | 143 +++++++++++++++++++++++++++++++----------------------
1 file changed, 83 insertions(+), 60 deletions(-)
--
2.25.1