Support to print rootfs files and tmpfs files that having pages charged
in given memory cgroup. The files infomations can be printed through
interface "memory.memfs_files_info" or printed when OOM is triggered.
Jinjiang Tu (1):
fs: move {lock, unlock}_mount_hash to fs/mount.h
Liu Shixin (2):
mm/memcg_memfs_info: show files that having pages charged in
mem_cgroup
config: enable CONFIG_MEMCG_MEMFS_INFO by default
Documentation/vm/memcg_memfs_info.rst | 40 ++++
arch/arm64/configs/openeuler_defconfig | 1 +
arch/x86/configs/openeuler_defconfig | 1 +
fs/mount.h | 10 +
fs/namespace.c | 10 -
include/linux/memcg_memfs_info.h | 23 ++
init/Kconfig | 10 +
mm/Makefile | 1 +
mm/memcg_memfs_info.c | 318 +++++++++++++++++++++++++
mm/memcontrol.c | 12 +
10 files changed, 416 insertions(+), 10 deletions(-)
create mode 100644 Documentation/vm/memcg_memfs_info.rst
create mode 100644 include/linux/memcg_memfs_info.h
create mode 100644 mm/memcg_memfs_info.c
--
2.25.1