Re: [PATCH 4/6] mm/vmscan: remove redundant current_may_throttle() check

2018-03-20 Thread Michal Hocko
On Thu 15-03-18 19:45:51, Andrey Ryabinin wrote: > Only kswapd can have non-zero nr_immediate, and current_may_throttle() is > always true for kswapd (PF_LESS_THROTTLE bit is never set) thus it's > enough to check stat.nr_immediate only. OK, so this is a result of some code evolution. We used to c

[PATCH 4/6] mm/vmscan: remove redundant current_may_throttle() check

2018-03-15 Thread Andrey Ryabinin
Only kswapd can have non-zero nr_immediate, and current_may_throttle() is always true for kswapd (PF_LESS_THROTTLE bit is never set) thus it's enough to check stat.nr_immediate only. Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git