* [Patch v2] mm: remove dead code totalram_pages_set()
@ 2019-12-18 0:55 Wei Yang
2019-12-18 8:46 ` David Hildenbrand
0 siblings, 1 reply; 3+ messages in thread
From: Wei Yang @ 2019-12-18 0:55 UTC (permalink / raw)
To: akpm, david, cai; +Cc: linux-mm, linux-kernel, Wei Yang
No one uses totalram_pages_set(), just remove it.
Fixes: ca79b0c211af ("mm: convert totalram_pages and totalhigh_pages
variables to atomic")
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
---
v2: fix typo and points which commit introduce it.
---
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;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Patch v2] mm: remove dead code totalram_pages_set()
2019-12-18 0:55 [Patch v2] mm: remove dead code totalram_pages_set() Wei Yang
@ 2019-12-18 8:46 ` David Hildenbrand
2019-12-19 2:56 ` Wei Yang
0 siblings, 1 reply; 3+ messages in thread
From: David Hildenbrand @ 2019-12-18 8:46 UTC (permalink / raw)
To: Wei Yang, akpm, cai; +Cc: linux-mm, linux-kernel
On 18.12.19 01:55, Wei Yang wrote:
> No one uses totalram_pages_set(), just remove it.
>
> Fixes: ca79b0c211af ("mm: convert totalram_pages and totalhigh_pages
> variables to atomic")
Hi Wei, thanks for the update.
We should really avoid "Fixes" tags here. This is neither a bugfix nor a
compile fix.
@Andrew, can you fix that up to:
"Last user was removed in commit ca79b0c211af ("mm: convert
totalram_pages and totalhigh_pages variables to atomic")."
Cheers!
>
> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
> Reviewed-by: David Hildenbrand <david@redhat.com>
>
> ---
> v2: fix typo and points which commit introduce it.
> ---
> 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;
>
>
--
Thanks,
David / dhildenb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch v2] mm: remove dead code totalram_pages_set()
2019-12-18 8:46 ` David Hildenbrand
@ 2019-12-19 2:56 ` Wei Yang
0 siblings, 0 replies; 3+ messages in thread
From: Wei Yang @ 2019-12-19 2:56 UTC (permalink / raw)
To: David Hildenbrand; +Cc: Wei Yang, akpm, cai, linux-mm, linux-kernel
On Wed, Dec 18, 2019 at 09:46:58AM +0100, David Hildenbrand wrote:
>On 18.12.19 01:55, Wei Yang wrote:
>> No one uses totalram_pages_set(), just remove it.
>>
>> Fixes: ca79b0c211af ("mm: convert totalram_pages and totalhigh_pages
>> variables to atomic")
>
>Hi Wei, thanks for the update.
>
>We should really avoid "Fixes" tags here. This is neither a bugfix nor a
>compile fix.
>
Agree, when I pick up this tags, I am a little not sure whether this is
correct.
>@Andrew, can you fix that up to:
>"Last user was removed in commit ca79b0c211af ("mm: convert
>totalram_pages and totalhigh_pages variables to atomic")."
>
Hmm... this one is not that exact. This function is introduced in commit
ca79b0c211af and no one use it on its birth.
Maybe we need to change it to:
totalram_pages_set() is introduced in commit ca79b0c211af ("mm: convert
totalram_pages and totalhigh_pages variables to atomic"), but no one
use it.
Thanks for your comments:-)
>Cheers!
>
>>
>> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
>> Reviewed-by: David Hildenbrand <david@redhat.com>
>>
>> ---
>> v2: fix typo and points which commit introduce it.
>> ---
>> 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;
>>
>>
>
>
>--
>Thanks,
>
>David / dhildenb
--
Wei Yang
Help you, Help me
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-19 2:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 0:55 [Patch v2] mm: remove dead code totalram_pages_set() Wei Yang
2019-12-18 8:46 ` David Hildenbrand
2019-12-19 2:56 ` Wei Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).