mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
taskstats: remove redundant MM_STAT config check
Userspace does not have access to MM_STAT configs, so remove redundant config checks. Change-Id: I0ec0807a1e62bd5932f01ed285f2175f27900e37 Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
This commit is contained in:
parent
bbc7f2d3ed
commit
9d12d29a2d
3 changed files with 5 additions and 5 deletions
|
|
@ -489,6 +489,8 @@ static void sysstats_build(struct sys_memstats *stats)
|
|||
#ifdef CONFIG_MM_STAT_UNRECLAIMABLE_PAGES
|
||||
stats->unreclaimable =
|
||||
K(global_node_page_state(NR_UNRECLAIMABLE_PAGES));
|
||||
#else
|
||||
stats->unreclaimable = 0;
|
||||
#endif
|
||||
stats->buffer = K(i.bufferram);
|
||||
stats->swapcache = K(total_swapcache_pages());
|
||||
|
|
@ -682,6 +684,8 @@ static int taskstats2_cmd_attr_pid(struct genl_info *info)
|
|||
#ifdef CONFIG_MM_STAT_UNRECLAIMABLE_PAGES
|
||||
stats->unreclaimable =
|
||||
K(get_mm_counter(p->mm, MM_UNRECLAIMABLE));
|
||||
#else
|
||||
stats->unreclaimable = 0;
|
||||
#endif
|
||||
#undef K
|
||||
task_unlock(p);
|
||||
|
|
|
|||
Loading…
Reference in a new issue