public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Modify memfd_luo code
@ 2026-03-23 11:07 Chenghao Duan
  2026-03-23 11:07 ` [PATCH v2 1/4] mm/memfd: use folio_nr_pages() for shmem inode accounting Chenghao Duan
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Chenghao Duan @ 2026-03-23 11:07 UTC (permalink / raw)
  To: pasha.tatashin, rppt, pratyush, akpm, linux-kernel, linux-mm
  Cc: jianghaoran, Chenghao Duan

I found several modifiable points while reading the code. Please review.

v2:
As suggested by Pratyush Yadav, add patch
<mm/memfd: use folio_nr_pages() for shmem inode accounting>.
https://lore.kernel.org/all/2vxzqzpebzi2.fsf@kernel.org/

<mm/memfd_luo: optimize shmem_recalc_inode calls in retrieve path>
Same as V1, no logic changes; depends on patch #1 for modifications.

<mm/memfd_luo: remove unnecessary memset in zero-size memfd path>
No modifications have been made.

<mm/memfd_luo: use i_size_write() to set inode size during retrieve>
Add consistency-related descriptions to the commit log.


v1:
https://lore.kernel.org/all/20260319012845.29570-1-duanchenghao@kylinos.cn/

Chenghao Duan (4):
  mm/memfd: use folio_nr_pages() for shmem inode accounting
  mm/memfd_luo: optimize shmem_recalc_inode calls in retrieve path
  mm/memfd_luo: remove unnecessary memset in zero-size memfd path
  mm/memfd_luo: use i_size_write() to set inode size during retrieve

 mm/memfd_luo.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 0/4] Modify memfd_luo code
@ 2026-03-23 11:07 Chenghao Duan
  0 siblings, 0 replies; 8+ messages in thread
From: Chenghao Duan @ 2026-03-23 11:07 UTC (permalink / raw)
  To: pasha.tatashin, rppt, pratyush, akpm, linux-kernel, linux-mm
  Cc: Chenghao Duan

I found several modifiable points while reading the code. Please review.

v2:
As suggested by Pratyush Yadav, add patch
<mm/memfd: use folio_nr_pages() for shmem inode accounting>.
https://lore.kernel.org/all/2vxzqzpebzi2.fsf@kernel.org/

<mm/memfd_luo: optimize shmem_recalc_inode calls in retrieve path>
Same as V1, no logic changes; depends on patch #1 for modifications.

<mm/memfd_luo: remove unnecessary memset in zero-size memfd path>
No modifications have been made.

<mm/memfd_luo: use i_size_write() to set inode size during retrieve>
Add consistency-related descriptions to the commit log.


v1:
https://lore.kernel.org/all/20260319012845.29570-1-duanchenghao@kylinos.cn/

Chenghao Duan (4):
  mm/memfd: use folio_nr_pages() for shmem inode accounting
  mm/memfd_luo: optimize shmem_recalc_inode calls in retrieve path
  mm/memfd_luo: remove unnecessary memset in zero-size memfd path
  mm/memfd_luo: use i_size_write() to set inode size during retrieve

 mm/memfd_luo.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-24  1:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 11:07 [PATCH v2 0/4] Modify memfd_luo code Chenghao Duan
2026-03-23 11:07 ` [PATCH v2 1/4] mm/memfd: use folio_nr_pages() for shmem inode accounting Chenghao Duan
2026-03-23 11:07 ` [PATCH v2 2/4] mm/memfd_luo: optimize shmem_recalc_inode calls in retrieve path Chenghao Duan
2026-03-23 11:07 ` [PATCH v2 3/4] mm/memfd_luo: remove unnecessary memset in zero-size memfd path Chenghao Duan
2026-03-23 11:07 ` [PATCH v2 4/4] mm/memfd_luo: use i_size_write() to set inode size during retrieve Chenghao Duan
2026-03-23 21:09 ` [PATCH v2 0/4] Modify memfd_luo code Andrew Morton
2026-03-24  1:54   ` Chenghao Duan
  -- strict thread matches above, loose matches on Subject: below --
2026-03-23 11:07 Chenghao Duan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox