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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250410203117.2ctv3cobdgawp7ma@offworld>
Date: Thu, 10 Apr 2025 13:31:17 -0700
From: Davidlohr Bueso <dave@...olabs.net>
To: nifan.cxl@...il.com
Cc: willy@...radead.org, mcgrof@...nel.org, a.manzanares@...sung.com,
	akpm@...ux-foundation.org, david@...hat.com, linux-mm@...ck.org,
	linux-kernel@...r.kernel.org, will@...nel.org,
	aneesh.kumar@...nel.org, hca@...ux.ibm.com, gor@...ux.ibm.com,
	linux-s390@...r.kernel.org, ziy@...dia.com,
	Fan Ni <fan.ni@...sung.com>
Subject: Re: [PATCH] mm: Introduce free_folio_and_swap_cache() to replace
 free_page_and_swap_cache()

On Thu, 10 Apr 2025, nifan.cxl@...il.com wrote:

>From: Fan Ni <fan.ni@...sung.com>
>
>The function free_page_and_swap_cache() takes a struct page pointer as
>input parameter, but it will immediately convert it to folio and all
>operations following within use folio instead of page.  It makes more
>sense to pass in folio directly.
>
>Introduce free_folio_and_swap_cache(), which takes folio as input to
>replace free_page_and_swap_cache().  And apply it to all occurrences
>where free_page_and_swap_cache() was used.
>
>Signed-off-by: Fan Ni <fan.ni@...sung.com>

With the already pointed out issues, this looks good.

Acked-by: Davidlohr Bueso <dave@...olabs.net>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ