linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] mm: remove cgroup_throttle_swaprate() completely
@ 2023-03-02 11:58 Kefeng Wang
  2023-03-02 11:58 ` [PATCH v2 1/7] mm: huge_memory: convert __do_huge_pmd_anonymous_page() to use a folio Kefeng Wang
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Kefeng Wang @ 2023-03-02 11:58 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Matthew Wilcox (Oracle), Kefeng Wang

Convert all the caller functions of cgroup_throttle_swaprate() to use
folios, and use folio_throttle_swaprate(),  which allows us to remove
cgroup_throttle_swaprate() completely.

v2:
- address comments from Matthew Wilcox, eg, 
  1) folio conversion inside  __do_huge_pmd_anonymous_page() function,
  2) rename __cgroup_throttle_swaprate() to __folio_throttle_swaprate()
  3) rename gfp_mask to gfp

Kefeng Wang (7):
  mm: huge_memory: convert __do_huge_pmd_anonymous_page() to use a folio
  mm: memory: use folio_throttle_swaprate() in do_swap_page()
  mm: memory: use folio_throttle_swaprate() in page_copy_prealloc()
  mm: memory: use folio_throttle_swaprate() in wp_page_copy()
  mm: memory: use folio_throttle_swaprate() in do_anonymous_page()
  mm: memory: use folio_throttle_swaprate() in do_cow_fault()
  mm: swap: remove unneeded cgroup_throttle_swaprate()

 include/linux/swap.h | 12 ++++--------
 mm/huge_memory.c     | 21 +++++++++++----------
 mm/memory.c          | 10 +++++-----
 mm/swapfile.c        |  6 +++---
 4 files changed, 23 insertions(+), 26 deletions(-)

-- 
2.35.3



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

end of thread, other threads:[~2023-03-02 19:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-02 11:58 [PATCH v2 0/7] mm: remove cgroup_throttle_swaprate() completely Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 1/7] mm: huge_memory: convert __do_huge_pmd_anonymous_page() to use a folio Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 2/7] mm: memory: use folio_throttle_swaprate() in do_swap_page() Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 3/7] mm: memory: use folio_throttle_swaprate() in page_copy_prealloc() Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 4/7] mm: memory: use folio_throttle_swaprate() in wp_page_copy() Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 5/7] mm: memory: use folio_throttle_swaprate() in do_anonymous_page() Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 6/7] mm: memory: use folio_throttle_swaprate() in do_cow_fault() Kefeng Wang
2023-03-02 11:58 ` [PATCH v2 7/7] mm: swap: remove unneeded cgroup_throttle_swaprate() Kefeng Wang
2023-03-02 19:04 ` [PATCH v2 0/7] mm: remove cgroup_throttle_swaprate() completely Matthew Wilcox

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