projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6664248
)
rk: lowmemorykiller: calculator free pages exclude CMA's free
author
CMY
<cmy@rock-chips.com>
Mon, 23 Jun 2014 02:11:35 +0000
(10:11 +0800)
committer
CMY
<cmy@rock-chips.com>
Mon, 23 Jun 2014 02:11:35 +0000
(10:11 +0800)
drivers/staging/android/lowmemorykiller.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/lowmemorykiller.c
b/drivers/staging/android/lowmemorykiller.c
index a56e0894f66871752d7e9df73653edbc87184b8a..db571b8f0c8d961749e8599b2bcd55b96ee76b3d 100644
(file)
--- a/
drivers/staging/android/lowmemorykiller.c
+++ b/
drivers/staging/android/lowmemorykiller.c
@@
-77,7
+77,8
@@
static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
int selected_tasksize = 0;
short selected_oom_score_adj;
int array_size = ARRAY_SIZE(lowmem_adj);
- int other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages;
+ int other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages -
+ global_page_state(NR_FREE_CMA_PAGES);
int other_file = global_page_state(NR_FILE_PAGES) -
global_page_state(NR_SHMEM);