[PATCH v3 6/8] ref_tracker: widen the ref_tracker_dir.name field

From: Jeff Layton
Date: Thu Apr 17 2025 - 09:14:26 EST


Currently it's 32 bytes, but with the need to move to unique names for
debugfs files, that won't be enough. Move to a 64 byte name field.

Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
---
include/linux/ref_tracker.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h
index 77a55a32c067216fa02ba349498f53bd289aee0c..e47e81fd048812251eca2820a8b1e89f5750de3a 100644
--- a/include/linux/ref_tracker.h
+++ b/include/linux/ref_tracker.h
@@ -7,6 +7,8 @@
#include <linux/stackdepot.h>
#include <linux/seq_file.h>

+#define REF_TRACKER_NAMESZ 64
+
struct ref_tracker;

struct ref_tracker_dir {
@@ -21,7 +23,7 @@ struct ref_tracker_dir {
#ifdef CONFIG_DEBUG_FS
struct dentry *dentry;
#endif
- char name[32];
+ char name[REF_TRACKER_NAMESZ];
#endif
};


--
2.49.0