]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/resctrl: Refactor mkdir_mondata_subdir()
authorTony Luck <tony.luck@intel.com>
Wed, 17 Dec 2025 17:21:08 +0000 (09:21 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 9 Jan 2026 22:02:57 +0000 (23:02 +0100)
commit0ec1db4cac8239bb32da87586c3638200b65dd8c
treedd057fd71fb4c4b2718d3667cd558ed6a961bb53
parent51541f6ca7718d8278e12fe80af80033268743b2
fs/resctrl: Refactor mkdir_mondata_subdir()

Population of a monitor group's mon_data directory is unreasonably complicated
because of the support for Sub-NUMA Cluster (SNC) mode.

Split out the SNC code into a helper function to make it easier to add support
for a new telemetry resource.

Move all the duplicated code to make and set owner of domain directories into
the mon_add_all_files() helper and rename to _mkdir_mondata_subdir().

Suggested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com
fs/resctrl/rdtgroup.c