Re: [PATCH] mm: remove dead code totalram_pages_set()

From: Qian Cai
Date: Tue Dec 17 2019 - 20:05:03 EST




> On Dec 17, 2019, at 7:50 PM, Wei Yang <richardw.yang@xxxxxxxxxxxxxxx> wrote:
>
> Took a look into the history. This function is introduced in
>
> commit 'ca79b0c211af' (mm: convert totalram_pages and totalhigh_pages
> variables to atomic)
>
> Even in this commit, no one use this function.

It occurs to me that function was a part of API design as a placeholder which might be used in the future.