Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04dbe55b authored by Charan Teja Reddy's avatar Charan Teja Reddy Committed by Gerrit - the friendly Code Review server
Browse files

taskstats: properly account NR_KERNEL_MISC_RECLAIMABLE



NR_KERNEL_MISC_RECLAIMABLE contains the info in pages but accounting is
done considering it as bytes. Fix it.

Change-Id: I99a3bd43b7b77f6b137e1cc4c1854392d4a47635
Fixes: 5a5b186d ("taskstats: add support for system stats")
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 9585c2cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -482,7 +482,7 @@ static void sysstats_build(struct sys_memstats *stats)
	stats->version = SYSSTATS_VERSION;
	stats->memtotal = K(i.totalram);
	stats->reclaimable =
		global_node_page_state(NR_KERNEL_MISC_RECLAIMABLE) >> 10;
		K(global_node_page_state(NR_KERNEL_MISC_RECLAIMABLE));
	stats->swap_used = K(i.totalswap - i.freeswap);
	stats->swap_total = K(i.totalswap);
	stats->vmalloc_total = K(vmalloc_nr_pages());