mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
f19e77a3dc
commit
e4455abb50
2 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue