diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-20 13:47:43 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-15 21:26:05 -0400 |
commit | 842e12352c3074b8af1bc95cc2bb1e9fb47f4334 (patch) | |
tree | ae92bca5695237057d2faf9b52f9c3f732c31d7b /scripts/lib | |
parent | 2010464cfafb22821e39c216cb068d83c91d7d8b (diff) |
do_move_mount(): use the parent mount returned by do_lock_mount()
After successful do_lock_mount() call, mp.parent is set to either
real_mount(path->mnt) (for !beneath case) or to ->mnt_parent of that
(for beneath). p is set to real_mount(path->mnt) and after
several uses it's made equal to mp.parent. All uses prior to that
care only about p->mnt_ns and since p->mnt_ns == parent->mnt_ns,
we might as well use mp.parent all along.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions