ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
authorJeff Layton <jlayton@kernel.org>
Wed, 18 Jun 2025 14:24:20 +0000 (10:24 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Jun 2025 00:02:04 +0000 (17:02 -0700)
commitd04992dc86a6c77b7d39a1ee10013aed7111e855
tree3014df09105af945449f5673dddb57c1ae24d13c
parent65b584f5361163ba539d2c7122ca792c3cc87997
ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file

Add the ability for a subsystem to add a user-friendly symlink that
points to a ref_tracker_dir's debugfs file. Add a separate
debugfs_symlinks xarray and use that to track symlinks. The reaper
workqueue job will remove symlinks before their corresponding dentries.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20250618-reftrack-dbgfs-v15-7-24fc37ead144@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ref_tracker.h
lib/ref_tracker.c