• Christian Brauner's avatar
    pnode: pass mountpoint directly · 4ea2a8d8
    Christian Brauner authored
    Currently, we use a global variable to stash the destination
    mountpoint. All global variables are changed in propagate_one(). The
    mountpoint variable is one of the few which doesn't change after
    initialization. Instead, just pass the destination mountpoint directly
    making it easy to verify directly in propagate_mnt() that the
    destination mountpoint never changes.
    Reviewed-by: default avatarSeth Forshee (DigitalOcean) <sforshee@kernel.org>
    Message-Id: <20230202-fs-move-mount-replace-v2-2-f53cd31d6392@kernel.org>
    Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
    4ea2a8d8
pnode.c 15.1 KB