[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9688edb5-f474-49a4-ac84-0702ed3af3a2@redhat.com>
Date: Tue, 23 Sep 2025 10:25:03 +0200
From: David Hildenbrand <david@...hat.com>
To: xu.xin16@....com.cn, akpm@...ux-foundation.org
Cc: shakeel.butt@...ux.dev, hannes@...xchg.org, mhocko@...nel.org,
roman.gushchin@...ux.dev, chengming.zhou@...ux.dev, muchun.song@...ux.dev,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, cgroups@...r.kernel.org
Subject: Re: [PATCH linux-next v3 4/6] ksm: make ksm_process_profit available
on CONFIG_PROCFS=n
On 21.09.25 17:13, xu.xin16@....com.cn wrote:
> From: xu xin <xu.xin16@....com.cn>
>
> This remove the restriction CONFIG_PROCFS=y for the heler function
s/heler/helper.
> ksm_process_profit(), then we can use it for the later patches on
> CONFIG_PROCFS=n.
Better to something like this:
"Let's provide ksm_process_profit() also without CONFIG_PROCFS so we can
use it from memcg code next."
?
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/all/202509142046.QatEaTQV-lkp@intel.com/
Both tags should be dropped as there is nothing fixed here.
> Signed-off-by: xu xin <xu.xin16@....com.cn>
> ---
> mm/ksm.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/mm/ksm.c b/mm/ksm.c
> index e49f4b86ffb0..a68d4b37b503 100644
> --- a/mm/ksm.c
> +++ b/mm/ksm.c
> @@ -3282,7 +3282,6 @@ static void wait_while_offlining(void)
> }
> #endif /* CONFIG_MEMORY_HOTREMOVE */
>
> -#ifdef CONFIG_PROC_FS
> /*
> * The process is mergeable only if any VMA is currently
> * applicable to KSM.
> @@ -3307,7 +3306,6 @@ long ksm_process_profit(struct mm_struct *mm)
> return (long)(mm->ksm_merging_pages + mm_ksm_zero_pages(mm)) * PAGE_SIZE -
> mm->ksm_rmap_items * sizeof(struct ksm_rmap_item);
> }
> -#endif /* CONFIG_PROC_FS */
>
> #ifdef CONFIG_MEMCG
> struct memcg_ksm_stat {
--
Cheers
David / dhildenb
Powered by blists - more mailing lists