Skip to content

shmem,tmpfs: general maintenance

Hugh Dickins linux-fsdevel linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] shmem-_add_to_page_cache-before-shmem_inode_acct_blocks.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 21 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8shmem: shrink shmem_inode_info: dir_offsets in a unioninclude/linux/shmem_fs.h+10 -62 repliesApplied
2/8shmem: remove vma arg from shmem_get_folio_gfp()mm/shmem.c+6 -71 replyApplied
3/8shmem: factor shmem_falloc_wait() out of shmem_fault()mm/shmem.c+69 -573 repliesApplied
4/8shmem: trivial tidyups, removing extra blank lines, etcmm/shmem.c+21 -351 replyApplied
5/8shmem: shmem_acct_blocks() and shmem_inode_acct_blocks()mm/shmem.c+7 -71 replyApplied
6/8shmem: move memcg charge out of shmem_add_to_page_cache()mm/shmem.c+29 -391 replyApplied
7/8shmem: _add_to_page_cache() before shmem_inode_acct_blocks()mm/shmem.c+121 -1140 repliesApplied
8/8shmem,percpu_counter: add _limited_add(fbc, limit, amount)include/linux/percpu_counter.h lib/percpu_counter.c mm/shmem.c+81 -512 repliesApplied

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchChuck LeverJan Kara
1/8R-b R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8
8/8R-b

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

Read the v1 thread

Cover letter [PATCH 0/8] shmem,tmpfs: general maintenance

And here is a series of patches based on v6.6-rc3: mostly just cosmetic mods in mm/shmem.c, but the last two enforcing the "size=" limit better. 8/8 goes into percpu counter territory, and could stand alone: I'll add some more Cc's on that one.

Applies to any v6.6-rc so far, and to next-20230929 and to mm-everything-2023-09-29-23-51: hah, there's now an 09-30-01-16, I haven't tried it yet, but this should be good on that too.

1/8 shmem: shrink shmem_inode_info: dir_offsets in a union 2/8 shmem: remove vma arg from shmem_get_folio_gfp() 3/8 shmem: factor shmem_falloc_wait() out of shmem_fault() 4/8 shmem: trivial tidyups, removing extra blank lines, etc 5/8 shmem: shmem_acct_blocks() and shmem_inode_acct_blocks() 6/8 shmem: move memcg charge out of shmem_add_to_page_cache() 7/8 shmem: _add_to_page_cache() before shmem_inode_acct_blocks() 8/8 shmem,percpu_counter: add _limited_add(fbc, limit, amount)

 include/linux/percpu_counter.h |  23 ++
 include/linux/shmem_fs.h       |  16 +-
 lib/percpu_counter.c           |  53 ++++
 mm/shmem.c                     | 500 +++++++++++++++++------------------
 4 files changed, 333 insertions(+), 259 deletions(-)

Hugh