]> Gentwo Git Trees - linux/.git/commit
struct mount: relocate MNT_WRITE_HOLD bit
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 27 Aug 2025 17:37:12 +0000 (13:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Sep 2025 19:58:29 +0000 (15:58 -0400)
commit3371fa2f27134fc4ec7d40b2ae7b9e92c3b2527e
treeaaff2601103778dd89a12d4c7f8e843f01d186ab
parent09a1b33c080f6ac700fadc67c8471e67bf75fda4
struct mount: relocate MNT_WRITE_HOLD bit

... from ->mnt_flags to LSB of ->mnt_pprev_for_sb.

This is safe - we always set and clear it within the same mount_lock
scope, so we won't interfere with list operations - traversals are
always forward, so they don't even look at ->mnt_prev_for_sb and
both insertions and removals are in mount_lock scopes of their own,
so that bit will be clear in *all* mount instances during those.

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