diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-25 15:10:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-29 19:03:46 -0400 |
commit | a7cce099450f8fc597a6ac215440666610895fb7 (patch) | |
tree | f04754823fbaaebdf70586df9fac4e5fab624033 | |
parent | f6cc2f4e3d304c93b44c80f50430aa40e080cc3c (diff) |
statmount_mnt_basic(): simplify the logics for group id
We are holding namespace_sem shared and we have not done any group
id allocations since we grabbed it. Therefore IS_MNT_SHARED(m)
is equivalent to non-zero m->mnt_group_id.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index a75438121417..c549bd39c210 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -5298,7 +5298,7 @@ static void statmount_mnt_basic(struct kstatmount *s) s->sm.mnt_parent_id_old = m->mnt_parent->mnt_id; s->sm.mnt_attr = mnt_to_attr_flags(&m->mnt); s->sm.mnt_propagation = mnt_to_propagation_flags(m); - s->sm.mnt_peer_group = IS_MNT_SHARED(m) ? m->mnt_group_id : 0; + s->sm.mnt_peer_group = m->mnt_group_id; s->sm.mnt_master = IS_MNT_SLAVE(m) ? m->mnt_master->mnt_group_id : 0; } |