projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d317b2
)
mm/vmscan: make inactive_anon_is_low_global return directly
author
Yaowei Bai
<
[email protected]
>
Fri, 6 Nov 2015 02:47:17 +0000
(18:47 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 6 Nov 2015 03:34:48 +0000
(19:34 -0800)
Delete unnecessary if to let inactive_anon_is_low_global return
directly.
No functional changes.
Signed-off-by: Yaowei Bai <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 7f63a9381f71ebbb0c1f9bdda94a913c930280f0..773fc8db75d256cb74e34e67c351a92014155963 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1866,10
+1866,7
@@
static int inactive_anon_is_low_global(struct zone *zone)
active = zone_page_state(zone, NR_ACTIVE_ANON);
inactive = zone_page_state(zone, NR_INACTIVE_ANON);
- if (inactive * zone->inactive_ratio < active)
- return 1;
-
- return 0;
+ return inactive * zone->inactive_ratio < active;
}
/**