Thread (12 messages) 12 messages, 2 authors, 3d ago

Re: [PATCH v1 v1 2/7] ntfs3: add namei tracepoints

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2026-07-23 14:17:17
Also in: lkml, ntfs3

On Thu, 23 Jul 2026 17:30:33 +0800
liubaolin [off-list ref] wrote:
Dear Steve,
    dentry->d_name.len is the qstr length and does not include the 
trailing NUL, so it corresponds to strlen(dentry->d_name.name), rather 
than strlen(dentry->d_name.name) + 1.
But it is still tightly coupled with the actual length of the name.
If you think the extra name_len field here is unnecessary, I can submit 
a v2 patch to drop it. Looking forward to your feedback.
I'm wondering what the purpose of it is for. The length of the string is
also stored in part of the meta data of the event which can be retrieved
via:

  __get_dynnamic_array_len(name)

Although that will be strlen(name) + 1.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help