]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: introduce cgroup_ino()
authorTejun Heo <tj@kernel.org>
Tue, 11 Feb 2014 16:52:49 +0000 (11:52 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 11 Feb 2014 16:52:49 +0000 (11:52 -0500)
commitcc17374bcb2718644a1bf83e06ec6de41d9091f2
tree4fbbb4a62793e72d9dbe44c71db0ea75f54cc21b
parent877330fc8a72947aafa6b01207f7e94d7c2ed821
cgroup: introduce cgroup_ino()

mm/memory-failure.c::hwpoison_filter_task() has been reaching into
cgroup to extract the associated ino to be used as a filtering
criterion.  This is an implementation detail which shouldn't be
depended upon from outside cgroup proper and is about to change with
the scheduled kernfs conversion.

This patch introduces a proper interface to determine the associated
ino, cgroup_ino(), and updates hwpoison_filter_task() to use it
instead of reaching directly into cgroup.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Wu Fengguang <fengguang.wu@intel.com>
include/linux/cgroup.h
kernel/cgroup.c
mm/memory-failure.c