Commit bbe02ca4 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] current_is_kswapd() is a function

From: William Lee Irwin III <wli@holomorphy.com>

So call it rather than testing its address...
parent d99e5b2d
...@@ -453,7 +453,7 @@ static void prune_icache(int nr_to_scan) ...@@ -453,7 +453,7 @@ static void prune_icache(int nr_to_scan)
dispose_list(&freeable); dispose_list(&freeable);
up(&iprune_sem); up(&iprune_sem);
if (current_is_kswapd) if (current_is_kswapd())
mod_page_state(kswapd_inodesteal, reap); mod_page_state(kswapd_inodesteal, reap);
else else
mod_page_state(pginodesteal, reap); mod_page_state(pginodesteal, reap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment