Re: [PATCH] lib/show_mem.c: correct reserved memory calculation

2015-07-20 Thread Andrew Morton
On Mon, 20 Jul 2015 14:44:25 +0530 Vishnu Pratap Singh wrote: > CMA reserved memory is not part of total reserved memory. > Currently when we print the total reserve memory it considers > cma as part of reserve memory and do minus of totalcma_pages > from reserved, which is wrong. In cases where

[PATCH] lib/show_mem.c: correct reserved memory calculation

2015-07-20 Thread Vishnu Pratap Singh
CMA reserved memory is not part of total reserved memory. Currently when we print the total reserve memory it considers cma as part of reserve memory and do minus of totalcma_pages from reserved, which is wrong. In cases where total reserved is less than cma reserved we will get negative values & w