[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191218004815.GA23703@richard>
Date: Wed, 18 Dec 2019 08:48:15 +0800
From: Wei Yang <richardw.yang@...ux.intel.com>
To: David Hildenbrand <david@...hat.com>, g@...hard
Cc: Wei Yang <richardw.yang@...ux.intel.com>,
akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: remove dead code totalram_pages_set()
On Tue, Dec 17, 2019 at 12:01:11PM +0100, David Hildenbrand wrote:
>On 17.12.19 07:44, Wei Yang wrote:
>> No one use totalram_pages_set(), just remote it.
>
>s/use/uses/
>s/remote/remove/
>
Thanks, my bad.
>>
>> Signed-off-by: Wei Yang <richardw.yang@...ux.intel.com>
>> ---
>> include/linux/mm.h | 5 -----
>> 1 file changed, 5 deletions(-)
>>
>> diff --git a/include/linux/mm.h b/include/linux/mm.h
>> index 74232b28949b..4cf023c4c6b3 100644
>> --- a/include/linux/mm.h
>> +++ b/include/linux/mm.h
>> @@ -70,11 +70,6 @@ static inline void totalram_pages_add(long count)
>> atomic_long_add(count, &_totalram_pages);
>> }
>>
>> -static inline void totalram_pages_set(long val)
>> -{
>> - atomic_long_set(&_totalram_pages, val);
>> -}
>> -
>> extern void * high_memory;
>> extern int page_cluster;
>>
>>
>
>Reviewed-by: David Hildenbrand <david@...hat.com>
>
>--
>Thanks,
>
>David / dhildenb
--
Wei Yang
Help you, Help me
Powered by blists - more mailing lists