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] [day] [month] [year] [list]
Message-ID: <42ef695f-030d-4e18-befd-bc774815c552@kernel.org>
Date: Fri, 19 Dec 2025 15:27:38 +0100
From: "David Hildenbrand (Red Hat)" <david@...nel.org>
To: Kairui Song <ryncsn@...il.com>, linux-mm@...ck.org
Cc: Andrew Morton <akpm@...ux-foundation.org>, Jason Gunthorpe
 <jgg@...pe.ca>, John Hubbard <jhubbard@...dia.com>,
 Peter Xu <peterx@...hat.com>, Alistair Popple <apopple@...dia.com>,
 linux-kernel@...r.kernel.org, Kairui Song <kasong@...cent.com>
Subject: Re: [PATCH] mm/gup: remove no longer used gup_fast_undo_dev_pagemap

On 12/19/25 12:46, Kairui Song wrote:
> From: Kairui Song <kasong@...cent.com>
> 
> This helper is no longer used after commit fd2825b0760a ("mm/gup: remove
> pXX_devmap usage from get_user_pages()").
> 
> Signed-off-by: Kairui Song <kasong@...cent.com>
> ---
>   mm/gup.c | 11 -----------
>   1 file changed, 11 deletions(-)
> 
> diff --git a/mm/gup.c b/mm/gup.c
> index 95d948c8e86c..8e7dc2c6ee73 100644
> --- a/mm/gup.c
> +++ b/mm/gup.c
> @@ -2806,17 +2806,6 @@ static bool gup_fast_folio_allowed(struct folio *folio, unsigned int flags)
>   	return !reject_file_backed || shmem_mapping(mapping);
>   }
>   
> -static void __maybe_unused gup_fast_undo_dev_pagemap(int *nr, int nr_start,
> -		unsigned int flags, struct page **pages)
> -{
> -	while ((*nr) - nr_start) {
> -		struct folio *folio = page_folio(pages[--(*nr)]);
> -
> -		folio_clear_referenced(folio);
> -		gup_put_folio(folio, 1, flags);
> -	}
> -}
> -

Thanks!

Acked-by: David Hildenbrand (Red Hat) <david@...nel.org>

-- 
Cheers

David

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ