lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 2 Mar 2023 19:58:28 +0800
From:   Kefeng Wang <wangkefeng.wang@...wei.com>
To:     <akpm@...ux-foundation.org>
CC:     <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org>,
        "Matthew Wilcox (Oracle)" <willy@...radead.org>,
        Kefeng Wang <wangkefeng.wang@...wei.com>
Subject: [PATCH v2 0/7] mm: remove cgroup_throttle_swaprate() completely

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ