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

From: Wei Yang
Date: Tue Dec 17 2019 - 19:50:47 EST


On Tue, Dec 17, 2019 at 07:48:09AM -0500, Qian Cai wrote:
>
>
>> On Dec 17, 2019, at 1:44 AM, Wei Yang <richardw.yang@xxxxxxxxxxxxxxx> wrote:
>>
>> No one use totalram_pages_set(), just remote it.
>
>It is unlikely that this is unintentional, but can you figure out which commit removed the last caller just in case?

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.

Will include this in next version.

--
Wei Yang
Help you, Help me