Skip to content

Commit 18f2e0e

Browse files
mjguzikbrauner
authored andcommitted
fs: write a better comment in step_into() concerning .mnt assignment
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://patch.msgid.link/20260328175841.3390950-1-mjguzik@gmail.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 3c1fc67 commit 18f2e0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ static __always_inline const char *step_into(struct nameidata *nd, int flags,
21412141
if (unlikely(!inode))
21422142
return ERR_PTR(-ENOENT);
21432143
nd->path.dentry = dentry;
2144-
/* nd->path.mnt is retained on purpose */
2144+
/* nd->path.mnt remains unchanged as no mount point was crossed */
21452145
nd->inode = inode;
21462146
nd->seq = nd->next_seq;
21472147
return NULL;

0 commit comments

Comments
 (0)