Commit 66320685 authored by Al Viro's avatar Al Viro
Browse files

copy_tree(): don't link the mounts via mnt_list



The only place that really needs to be adjusted is commit_tree() -
there we need to iterate through the copy and we might as well
use next_mnt() for that.  However, in case when our tree has been
slid under something already mounted (propagation to a mountpoint
that already has something mounted on it or a 'beneath' move_mount)
we need to take care not to walk into the overmounting tree.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dd5a4e1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment