]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
new helper: topmost_overmount()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Aug 2025 07:23:12 +0000 (03:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:26:05 +0000 (21:26 -0400)
commit25423edc787842d17520b3f9df4d0a58a6a663b1
treeedcb63f6345d6a5373d02bc889be1dc3c350bec1
parented8ba4aad78887d88231c1c66c0ddf9fe12aaad1
new helper: topmost_overmount()

Returns the final (topmost) mount in the chain of overmounts
starting at given mount.  Same locking rules as for any mount
tree traversal - either the spinlock side of mount_lock, or
rcu + sample the seqcount side of mount_lock before the call
and recheck afterwards.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/mount.h
fs/namespace.c