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.

[[email protected]: cleanup]
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Reviewed-by: KOSAKI Motohiro <[email protected]>
Cc: Lee Schermerhorn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Thadeu Lima de Souza Cascardo 2010-10-26 14:21:28 -07:00 • committed by Linus Torvalds
commit e4455abb50
2 changed files with 12 additions and 1 deletions

View file

@ -2986,6 +2986,7 @@ int scan_unevictable_handler(struct ctl_table *table, int write,
return 0;
}
#ifdef CONFIG_NUMA
/*
* per node 'scan_unevictable_pages' attribute. On demand re-scan of
* a specified node's per zone unevictable lists for evictable pages.
@ -3032,4 +3033,4 @@ void scan_unevictable_unregister_node(struct node *node)
{
sysdev_remove_file(&node->sysdev, &attr_scan_unevictable_pages);
}
#endif