[PATCH v4 0/2] refactors thpsize_shmem_enabled_store() and thpsize_shmem_enabled_show()

ranxiaokai627@163.com posted 2 patches 2 weeks ago
mm/shmem.c | 143 +++++++++++++++++++++++++++++++----------------------
1 file changed, 83 insertions(+), 60 deletions(-)
[PATCH v4 0/2] refactors thpsize_shmem_enabled_store() and thpsize_shmem_enabled_show()
Posted by ranxiaokai627@163.com 2 weeks ago
From: Ran Xiaokai <ran.xiaokai@zte.com.cn>

This is v4 of the refactor of thpsize_shmem_enabled_store() and
thpsize_shmem_enabled_show() series.

Changes since v3:
 - Simplified verbose variable names to huge_mode, huge_mode_strings, huge_mode_orders
   as suggested by Lorenzo and Baolin.
 - Add Reviewed-by and Tested-by tags.

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