current_is_kswapd is a function

From: William Lee Irwin III
Date: Sat Oct 11 2003 - 21:16:26 EST


current_is_kswapd() is a function, not an integer; this explains some
anomalies in reported statistics.

===== fs/inode.c 1.107 vs edited =====
--- 1.107/fs/inode.c Sun Oct 5 01:07:55 2003
+++ edited/fs/inode.c Sat Oct 11 19:15:48 2003
@@ -453,7 +453,7 @@
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/