tmpfs: HUGEPAGE and MEM_LOCK fcntls and memfds
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 28 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | huge tmpfs: fix fallocate(vanilla) advance over huge pagesmm/ | +16 | 3 replies | |
| 2/16 | huge tmpfs: fix split_huge_page() after FALLOC_FL_KEEP_SIZEinclude/ mm/ mm/ | +31 | 1 reply | |
| 3/16 | huge tmpfs: remove shrinklist addition from shmem_setattr()mm/ | +0 | 1 reply | |
| 4/16 | huge tmpfs: revert shmem's use of transhuge_vma_enabled()mm/ | +2 | 3 replies | |
| 5/16 | huge tmpfs: move shmem_huge_enabled() upwardsmm/ | +35 | 1 reply | |
| 6/16 | huge tmpfs: shmem_is_huge(vma, inode, index)include/ mm/ mm/ | +32 | 12 replies | |
| 7/16 | memfd: memfd_create(name, MFD_HUGEPAGE) for shmem huge pagesinclude/ mm/ mm/ | +51 | 2 replies | |
| 8/16 | huge tmpfs: fcntl(fd, F_HUGEPAGE) and fcntl(fd, F_NOHUGEPAGE)fs/ include/ include/ +1 more | +85 | 2 replies | |
| 9/16 | huge tmpfs: decide stat.st_blksize by shmem_is_huge()mm/ | +1 | 1 reply | |
| 10/16 | tmpfs: fcntl(fd, F_MEM_LOCK) to memlock a tmpfs filefs/ include/ include/ +1 more | +66 | 2 replies | |
| 11/16 | tmpfs: fcntl(fd, F_MEM_LOCKED) to test if memlockedfs/ include/ mm/ | +6 | 0 replies | |
| 12/16 | tmpfs: refuse memlock when fallocated beyond i_sizemm/ | +6 | 0 replies | |
| 13/16 | mm: bool user_shm_lock(loff_t size, struct ucounts *)include/ mm/ | +9 | 0 replies | |
| 14/16 | mm: user_shm_lock(,,getuc) and user_shm_unlock(,,putuc)fs/ include/ ipc/ +2 more | +14 | 0 replies | |
| 15/16 | tmpfs: permit changing size of memlocked filemm/ | +38 | 0 replies | |
| 16/16 | memfd: memfd_create(name, MFD_MEM_LOCK) for memlocked shmeminclude/ mm/ mm/ | +18 | 0 replies |
Reviews trailers per patch
4 of 16 patches have a Reviewed-by or Acked-by.
| Patch | Yang Shi |
|---|---|
| 1/16 | R-b |
| 2/16 | R-b |
| 3/16 | |
| 4/16 | |
| 5/16 | R-b |
| 6/16 | |
| 7/16 | |
| 8/16 | |
| 9/16 | R-b |
| 10/16 | |
| 11/16 | |
| 12/16 | |
| 13/16 | |
| 14/16 | |
| 15/16 | |
| 16/16 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/16] tmpfs: HUGEPAGE and MEM_LOCK fcntls and memfds
A series of HUGEPAGE and MEM_LOCK tmpfs fcntls and memfd_create flags, after fixes (not essential for stable) and cleanups in related areas.
Against 5.14-rc3: currently no conflict with linux-next or mmotm.
01/16 huge tmpfs: fix fallocate(vanilla) advance over huge pages 02/16 huge tmpfs: fix split_huge_page() after FALLOC_FL_KEEP_SIZE 03/16 huge tmpfs: remove shrinklist addition from shmem_setattr() 04/16 huge tmpfs: revert shmem's use of transhuge_vma_enabled() 05/16 huge tmpfs: move shmem_huge_enabled() upwards 06/16 huge tmpfs: shmem_is_huge(vma, inode, index)
07/16 memfd: memfd_create(name, MFD_HUGEPAGE) for shmem huge pages 08/16 huge tmpfs: fcntl(fd, F_HUGEPAGE) and fcntl(fd, F_NOHUGEPAGE) 09/16 huge tmpfs: decide stat.st_blksize by shmem_is_huge() 10/16 tmpfs: fcntl(fd, F_MEM_LOCK) to memlock a tmpfs file 11/16 tmpfs: fcntl(fd, F_MEM_LOCKED) to test if memlocked 12/16 tmpfs: refuse memlock when fallocated beyond i_size 13/16 mm: bool user_shm_lock(loff_t size, struct ucounts *) 14/16 mm: user_shm_lock(,,getuc) and user_shm_unlock(,,putuc) 15/16 tmpfs: permit changing size of memlocked file 16/16 memfd: memfd_create(name, MFD_MEM_LOCK) for memlocked shmem
fs/fcntl.c | 8 fs/hugetlbfs/inode.c | 4 include/linux/mm.h | 4 include/linux/shmem_fs.h | 31 ++- include/uapi/linux/fcntl.h | 17 + include/uapi/linux/memfd.h | 4 ipc/shm.c | 4 mm/huge_memory.c | 6 mm/khugepaged.c | 2 mm/memfd.c | 27 ++ mm/mlock.c | 19 - mm/shmem.c | 397 ++++++++++++++++++++++++++------------- 12 files changed, 370 insertions(+), 153 deletions(-)
Hugh