]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pivot_root(2): use old_mp.mp->m_dentry instead of old.dentry
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Aug 2025 04:26:44 +0000 (00:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:26:05 +0000 (21:26 -0400)
commita2bdb7d8dcf20810349e68824f399f5092269cf7
tree7e26b1a2dec3b520a80a85a5eab1a2055fa4d879
parent6bfb6938e2ffd2ae0b9962aa7cc94c0808eeb100
pivot_root(2): use old_mp.mp->m_dentry instead of old.dentry

That kills the last place where callers of lock_mount(path, &mp)
used path->dentry.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c