linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] mm: Remove PageAnonExclusive assertions in unuse_pte()
Date: Tue, 12 Dec 2023 17:49:42 +0100	[thread overview]
Message-ID: <1e234787-f9fb-413b-b6fc-09e08a2f1a4f@redhat.com> (raw)
In-Reply-To: <20231212164813.2540119-1-willy@infradead.org>

On 12.12.23 17:48, Matthew Wilcox (Oracle) wrote:
> The page in question is either freshly allocated or known to be in
> the swap cache; these assertions are not particularly useful.
> 

They fortunately never triggered, so it's all stable no.

> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
>   mm/swapfile.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/mm/swapfile.c b/mm/swapfile.c
> index 0371b7b3cd27..85f9c355cb99 100644
> --- a/mm/swapfile.c
> +++ b/mm/swapfile.c
> @@ -1788,10 +1788,6 @@ static int unuse_pte(struct vm_area_struct *vma, pmd_t *pmd,
>   	 */
>   	arch_swap_restore(entry, page_folio(page));
>   
> -	/* See do_swap_page() */
> -	BUG_ON(!PageAnon(page) && PageMappedToDisk(page));
> -	BUG_ON(PageAnon(page) && PageAnonExclusive(page));
> -
>   	dec_mm_counter(vma->vm_mm, MM_SWAPENTS);
>   	inc_mm_counter(vma->vm_mm, MM_ANONPAGES);
>   	get_page(page);

Reviewed-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb



      reply	other threads:[~2023-12-12 16:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-12 16:48 Matthew Wilcox (Oracle)
2023-12-12 16:49 ` David Hildenbrand [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e234787-f9fb-413b-b6fc-09e08a2f1a4f@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox