Files
android_kernel_samsung_sm8750/include/linux
Michal Hocko 33398cf2f3 memcg: export struct mem_cgroup
mem_cgroup structure is defined in mm/memcontrol.c currently which means
that the code outside of this file has to use external API even for
trivial access stuff.

This patch exports mm_struct with its dependencies and makes some of the
exported functions inlines.  This even helps to reduce the code size a bit
(make defconfig + CONFIG_MEMCG=y)

  text		data    bss     dec     	 hex 	filename
  12355346        1823792 1089536 15268674         e8fb42 vmlinux.before
  12354970        1823792 1089536 15268298         e8f9ca vmlinux.after

This is not much (370B) but better than nothing.

We also save a function call in some hot paths like callers of
mem_cgroup_count_vm_event which is used for accounting.

The patch doesn't introduce any functional changes.

[vdavykov@parallels.com: inline memcg_kmem_is_active]
[vdavykov@parallels.com: do not expose type outside of CONFIG_MEMCG]
[akpm@linux-foundation.org: memcontrol.h needs eventfd.h for eventfd_ctx]
[akpm@linux-foundation.org: export mem_cgroup_from_task() to modules]
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Suggested-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-09-08 15:35:28 -07:00
..
2015-06-25 11:49:31 +03:00
2015-08-03 12:01:54 -04:00
2015-06-01 14:35:56 -06:00
2015-09-01 15:52:41 +02:00
2015-09-04 16:54:41 -07:00
2015-09-08 15:35:28 -07:00
2015-06-24 17:49:45 -07:00
2015-07-17 08:41:53 -06:00
2015-06-01 14:33:35 +02:00
2015-06-19 15:18:28 +02:00
2015-09-08 15:35:28 -07:00
2015-08-06 00:14:59 +02:00
2015-06-25 12:06:45 +02:00
2015-07-28 08:50:42 +01:00
2015-09-08 15:35:28 -07:00
2015-06-24 17:49:41 -07:00
2015-09-08 15:35:28 -07:00
2015-09-04 16:54:41 -07:00
2015-07-21 10:39:05 -07:00
2015-06-25 04:20:04 -04:00
2015-08-17 13:32:56 -05:00
2015-07-04 14:04:44 -04:00
2015-08-18 11:56:13 -06:00
2015-06-19 01:18:14 +02:00
2015-06-12 11:36:30 +02:00
2015-06-10 19:14:04 +08:00
2015-05-27 12:58:04 -07:00
2015-06-25 01:13:43 +02:00
2015-06-25 17:00:40 -07:00
2015-09-08 15:35:28 -07:00
2015-09-04 16:54:41 -07:00
2015-06-25 17:00:39 -07:00
2015-08-17 11:25:28 -07:00
2015-07-22 15:27:29 -07:00
2015-08-28 16:27:27 -07:00
2015-06-12 17:26:57 -07:00
2015-06-25 17:00:37 -07:00