lkml.org 
[lkml]   [2020]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mm/vmstat: don't do count if no needs
From
Date


在 2020/7/21 上午7:14, Andrew Morton 写道:
>> --- a/mm/vmstat.c
>> +++ b/mm/vmstat.c
>> @@ -321,6 +321,9 @@ void __mod_zone_page_state(struct zone *zone, enum zone_stat_item item,
>> long x;
>> long t;
>>
>> + if (unlikely(!delta))
>> + return;
>> +
> Do we know that delta==0 is frequent enough to make the change a net
> benefit?

Uh,I check again. it seems no much place delta==0, forget this patch.

Thanks
Alex

\
 
 \ /
  Last update: 2020-07-21 05:08    [W:0.040 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site