__attach_mnt(): lose the second argument
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Jun 2025 01:10:02 +0000 (21:10 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jun 2025 22:13:41 +0000 (18:13 -0400)
commit1a867d729f951f1f0ef73c94d2f739f959cd8699
tree45caadabb5aa1390822e784dc92538daab31e2ab
parent9ed4b9eaeaa71cb0db4ec8460b5edd390aef58dd
__attach_mnt(): lose the second argument

It's always ->mnt_parent of the first one.  What the function does is
making a mount (with already set parent and mountpoint) visible - in
mount hash and in the parent's list of children.

IOW, it takes the existing rootwards linkage and sets the matching
crownwards linkage.

Renamed to make_visible(), while we are at it.

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