aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>2010-10-26 17:21:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-26 19:52:05 -0400
commite4455abb50a19562dbfdc51a8424fda9b588bd6d (patch)
treeadd38aec00027e9a115778425a41d3d075a9ced6 /mm
parentf19e77a3dc884510dba740caa6dee126b7d40156 (diff)
mm: only build per-node scan_unevictable functions when NUMA is enabled
Non-NUMA systems do never create these files anyway, since they are only created by driver subsystem when NUMA is configured. [akpm@linux-foundation.org: cleanup] Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 6cbc1aac23ae..f5871ee50000 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2986,6 +2986,7 @@ int scan_unevictable_handler(struct ctl_table *table, int write,
2986 return 0; 2986 return 0;
2987} 2987}
2988 2988
2989#ifdef CONFIG_NUMA
2989/* 2990/*
2990 * per node 'scan_unevictable_pages' attribute. On demand re-scan of 2991 * per node 'scan_unevictable_pages' attribute. On demand re-scan of
2991 * a specified node's per zone unevictable lists for evictable pages. 2992 * a specified node's per zone unevictable lists for evictable pages.
@@ -3032,4 +3033,4 @@ void scan_unevictable_unregister_node(struct node *node)
3032{ 3033{
3033 sysdev_remove_file(&node->sysdev, &attr_scan_unevictable_pages); 3034 sysdev_remove_file(&node->sysdev, &attr_scan_unevictable_pages);
3034} 3035}
3035 3036#endif