pnode: pass mountpoint directly
authorChristian Brauner <brauner@kernel.org>
Tue, 28 Mar 2023 16:13:07 +0000 (18:13 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 6 Apr 2023 12:53:38 +0000 (14:53 +0200)
commit4ea2a8d84c75e20b4d9b5d9010879cdb89f2e384
treef40f9c452f59feec95f285898c1d529de268f90b
parent113348a44b8622b497fb884f41c8659481ad0b04
pnode: pass mountpoint directly

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: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
Message-Id: <20230202-fs-move-mount-replace-v2-2-f53cd31d6392@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pnode.c