Skip to content

RFC Remove READ_ONLY_THP_FOR_FS

Zi Yan linux-btrfs linux-fsdevel linux-kselftest linux-mm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mm: remove READ_ONLY_THP_FOR_FS Kconfig optionmm/Kconfig+0 -110 replies
2/11mm/khugepaged: remove READ_ONLY_THP_FOR_FS code in collapse_file()mm/khugepaged.c+34 -12512 replies
3/11mm: remove filemap_nr_thps*() functionsinclude/linux/pagemap.h mm/filemap.c mm/huge_memory.c+0 -310 replies
4/11mm/huge_memory: remove file_thp_enabled() and its caller.mm/huge_memory.c+0 -210 replies
5/11mm/huge_memory: remove folio split check for READ_ONLY_THP_FOR_FSmm/huge_memory.c+0 -220 replies
6/11mm/truncate: use folio_split() in truncate_inode_partial_folio()include/linux/huge_mm.h mm/truncate.c+4 -320 replies
7/11fs: remove nr_thp from struct address_spacefs/inode.c include/linux/fs.h+0 -80 replies
8/11fs: remove READ_ONLY_THP_FOR_FS codefs/open.c+0 -270 replies
9/11fs/btrfs: remove a comment referring to READ_ONLY_THP_FOR_FSfs/btrfs/defrag.c+0 -31 reply
10/11selftests/mm: remove READ_ONLY_THP_FOR_FS test in khugepagedtools/testing/selftests/mm/khugepaged.c+3 -1943 replies
11/11selftests/mm: remove READ_ONLY_THP_FOR_FS test in guard-regionstools/testing/selftests/mm/guard-regions.c+1 -1470 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchDavid Sterba
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11A-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/11] Remove READ_ONLY_THP_FOR_FS

Hi all,

After Willy's heads-up on the removal of CONFIG_READ_ONLY_THP_FOR_FS[1]. This patchset is an attempt of removing it.

The patchset does the removal in the following steps:
1. remove READ_ONLY_THP_FOR_FS Kconfig
2. remove collapse_file() code on READ_ONLY_THP_FOR_FS
3. remove filemap_nr_thps*() functions
4. remove file_thp_enabled()
5. remove related folio splittable checks
6. replace try_folio_split_to_order() with folio_split() in truncate_inode_partial_folio().
6. remove related fs code
7. clean up selftests code

It seems that NR_FILE_THPS is also used for fs with large folio support, so it is kept.

Let me know if I miss anything. Comments and suggestions are welcome.

Zi Yan (11):
mm: remove READ_ONLY_THP_FOR_FS Kconfig option mm/khugepaged: remove READ_ONLY_THP_FOR_FS code in collapse_file()
mm: remove filemap_nr_thps*() functions
mm/huge_memory: remove file_thp_enabled() and its caller. mm/huge_memory: remove folio split check for READ_ONLY_THP_FOR_FS mm/truncate: use folio_split() in truncate_inode_partial_folio()
fs: remove nr_thp from struct address_space
fs: remove READ_ONLY_THP_FOR_FS code
fs/btrfs: remove a comment referring to READ_ONLY_THP_FOR_FS selftests/mm: remove READ_ONLY_THP_FOR_FS test in khugepaged selftests/mm: remove READ_ONLY_THP_FOR_FS test in guard-regions

 fs/btrfs/defrag.c                          |   3 -
 fs/inode.c                                 |   3 -
 fs/open.c                                  |  27 ---
 include/linux/fs.h                         |   5 -
 include/linux/huge_mm.h                    |  28 ---
 include/linux/pagemap.h                    |  29 ---
 mm/Kconfig                                 |  11 --
 mm/filemap.c                               |   1 -
 mm/huge_memory.c                           |  44 -----
 mm/khugepaged.c                            | 159 ++++-------------
 mm/truncate.c                              |   8 +-
 tools/testing/selftests/mm/guard-regions.c | 148 +---------------
 tools/testing/selftests/mm/khugepaged.c    | 197 +--------------------
 13 files changed, 42 insertions(+), 621 deletions(-)
Signature · 1 line
2.43.0