copy_tree(): don't set ->mnt_mountpoint on the root of copy
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 1 Jun 2025 04:34:32 +0000 (00:34 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jun 2025 22:13:41 +0000 (18:13 -0400)
commitcf53a2d423c11ed70611e7b3f0878d6e419e348a
tree4eac9bb2eb1994e373f2ae581564b25c7d55705d
parentffdc52fbbd5835a936ad683c943d6d103a2d4514
copy_tree(): don't set ->mnt_mountpoint on the root of copy

It never made any sense - neither when copy_tree() had been introduced
(2.4.11-pre5), nor at any point afterwards.  Mountpoint is meaningless
without parent mount and the root of copied tree has no parent until we get
around to attaching it somewhere.  At that time we'll have mountpoint set;
before that we have no idea which dentry will be used as mountpoint.
IOW, copy_tree() should just leave the default value.

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