]> git.hungrycats.org Git - linux/commitdiff
[PATCH] current_is_kswapd() is a function
authorAndrew Morton <akpm@osdl.org>
Thu, 16 Oct 2003 00:35:50 +0000 (17:35 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 16 Oct 2003 00:35:50 +0000 (17:35 -0700)
From: William Lee Irwin III <wli@holomorphy.com>

So call it rather than testing its address...

fs/inode.c

index 76d7881f2b606fbbb7a3bc687a1809a893b75395..4ba2baca5b0cabf750102850bea77733559fed3f 100644 (file)
@@ -453,7 +453,7 @@ static void prune_icache(int nr_to_scan)
        dispose_list(&freeable);
        up(&iprune_sem);
 
-       if (current_is_kswapd)
+       if (current_is_kswapd())
                mod_page_state(kswapd_inodesteal, reap);
        else
                mod_page_state(pginodesteal, reap);