]> git.ipfire.org Git - thirdparty/linux.git/commit
attach_mnt(): expand in attach_recursive_mnt(), then lose the flag argument
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Apr 2025 16:40:28 +0000 (12:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jun 2025 22:13:41 +0000 (18:13 -0400)
commit8c6ce8e86dd75db8e6c6a3e5a870e8d52dbab2d0
tree35b1f91b2d9f498e41885acbd0f94f5c25042b21
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
attach_mnt(): expand in attach_recursive_mnt(), then lose the flag argument

simpler that way - all but one caller pass false as 'beneath' argument,
and that one caller is actually happier with the call expanded - the
logics with choice of mountpoint is identical for 'moving' and 'attaching'
cases, and now that is no longer hidden.

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