[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ad50bc5d-d2be-4017-83e7-6fdc45ac1659@redhat.com>
Date: Fri, 5 Apr 2024 09:32:57 +0200
From: David Hildenbrand <david@...hat.com>
To: alexs@...nel.org, Matthew Wilcox <willy@...radead.org>,
Andrea Arcangeli <aarcange@...hat.com>,
Izik Eidus <izik.eidus@...ellosystems.com>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, ryncsn@...il.com
Cc: Hugh Dickins <hughd@...gle.com>, Chris Wright <chrisw@...s-sol.org>
Subject: Re: [PATCH v3 14/14] mm/ksm: remove set_page_stable_node
On 25.03.24 13:49, alexs@...nel.org wrote:
> From: "Alex Shi (tencent)" <alexs@...nel.org>
>
> Remove the func since all caller are gone. Also remove the
> VM_BUG_ON_PAGE() because it's not applicable for a folio.
Ehm, it is for small folios that we are working with here.
Please keep that check and convert it into a warn.
VM_WARN_ON_FOLIO(folio_test_anon(folio) && PageAnonExclusive(&folio->page), folio);
> - page->mapping = (void *)((unsigned long)stable_node | PAGE_MAPPING_KSM);
> -}
> -
> static inline void folio_set_stable_node(struct folio *folio,
> struct ksm_stable_node *stable_node)
> {
> - set_page_stable_node(&folio->page, stable_node);
> + folio->mapping = (void *)((unsigned long)stable_node | PAGE_MAPPING_KSM);
> }
>
> #ifdef CONFIG_SYSFS
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists