diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-20 21:40:07 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-02 19:35:57 -0400 |
| commit | 511db073b2150388dd05258ca2d7045dd0784033 (patch) | |
| tree | 4d8d635489c85aace6efad4cccfe54a337913e04 | |
| parent | 6b448d7a7c4848fd6cbe0eee49834df7d25b25f8 (diff) | |
propagate_mnt(): use scoped_guard(mount_locked_reader) for mnt_set_mountpoint()
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/pnode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/pnode.c b/fs/pnode.c index 6f7d02f3fa98..0702d45d856d 100644 --- a/fs/pnode.c +++ b/fs/pnode.c @@ -304,9 +304,8 @@ int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp, err = PTR_ERR(this); break; } - read_seqlock_excl(&mount_lock); - mnt_set_mountpoint(n, dest_mp, this); - read_sequnlock_excl(&mount_lock); + scoped_guard(mount_locked_reader) + mnt_set_mountpoint(n, dest_mp, this); if (n->mnt_master) SET_MNT_MARK(n->mnt_master); copy = this; |
