mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
ref_tracker: eliminate the ref_tracker_dir name field
Now that we have dentries and the ability to create meaningful symlinks to them, don't keep a name string in each tracker. Switch the output format to print "class@address", and drop the name field. Also, add a kerneldoc header for ref_tracker_dir_init(). Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20250618-reftrack-dbgfs-v15-9-24fc37ead144@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
8f2079f8da
commit
707bd05be7
@@ -403,8 +403,8 @@ static __net_init void preinit_net(struct net *net, struct user_namespace *user_
|
||||
{
|
||||
refcount_set(&net->passive, 1);
|
||||
refcount_set(&net->ns.count, 1);
|
||||
ref_tracker_dir_init(&net->refcnt_tracker, 128, "net_refcnt", "net_refcnt");
|
||||
ref_tracker_dir_init(&net->notrefcnt_tracker, 128, "net_notrefcnt", "net_notrefcnt");
|
||||
ref_tracker_dir_init(&net->refcnt_tracker, 128, "net_refcnt");
|
||||
ref_tracker_dir_init(&net->notrefcnt_tracker, 128, "net_notrefcnt");
|
||||
|
||||
get_random_bytes(&net->hash_mix, sizeof(u32));
|
||||
net->dev_base_seq = 1;
|
||||
|
||||
Reference in New Issue
Block a user