summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorYichong Chen <chenyichong@uniontech.com>2026-07-31 20:05:54 +0800
committerDanilo Krummrich <dakr@kernel.org>2026-08-15 23:09:10 +0200
commitd5e81a5650b5258c73768366db123b6d5bc48e32 (patch)
treee907d713ec6a189c2bbe0302b4813a8dbf89fb51 /tools/perf/scripts/python/stackcollapse.py
parentddca0cd800962b4121e5f2633005167bb6216175 (diff)
kernfs: avoid iattr allocation in listxattr
kernfs_iop_listxattr() only needs to report existing xattrs, but it uses kernfs_iattrs(), which allocates kernfs_iattrs when the node does not have one yet. This makes a query operation create persistent per-node metadata even when the xattr list is empty. Use kernfs_iattrs_noalloc() instead and return an empty list when no iattrs exist. Signed-off-by: Yichong Chen <chenyichong@uniontech.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://patch.msgid.link/20260731120554.630147-1-chenyichong@uniontech.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions