On Fri, Aug 08, 2014 at 09:39:21AM +0000, Zengtao (B) wrote: > From: Zeng Tao <prime.zeng@xxxxxxxxxxxxx> > > Date: Tue, 5 Aug 2014 17:58:10 +0800 > Subject: [PATCH] drivers: android: fix watermark when cma enabled > > when cma is enabled, the watermark caculation will > include the cma pages, while it can't use cma pages. > this will cause oom while lowmemory killer don't work. > > Signed-off-by: Zeng Tao <prime.zeng@xxxxxxxxxxxxx> > --- > drivers/staging/android/lowmemorykiller.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c > index 12f0a13..12cfd4f 100644 > --- a/drivers/staging/android/lowmemorykiller.c > +++ b/drivers/staging/android/lowmemorykiller.c > @@ -74,7 +74,9 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc) > int selected_tasksize = 0; > int 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) - > + global_page_state(NR_FREE_CMA_PAGES) - > + totalreserve_pages; > int other_file = global_page_state(NR_FILE_PAGES) - > global_page_state(NR_SHMEM); > This patch has the whitespace all damaged, making it impossible to apply :( Can you please just use git send-email to send a patch properly? The subject line here is also wrong, and I would have had to edit the body of the changelog, if it could be applied. thanks, greg k-h _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel