aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index c807b8d5f891..0505fb61aa74 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -850,8 +850,13 @@ static int show_mountinfo(struct seq_file *m, void *v)
850 /* Tagged fields ("foo:X" or "bar") */ 850 /* Tagged fields ("foo:X" or "bar") */
851 if (IS_MNT_SHARED(mnt)) 851 if (IS_MNT_SHARED(mnt))
852 seq_printf(m, " shared:%i", mnt->mnt_group_id); 852 seq_printf(m, " shared:%i", mnt->mnt_group_id);
853 if (IS_MNT_SLAVE(mnt)) 853 if (IS_MNT_SLAVE(mnt)) {
854 seq_printf(m, " master:%i", mnt->mnt_master->mnt_group_id); 854 int master = mnt->mnt_master->mnt_group_id;
855 int dom = get_dominating_id(mnt, &p->root);
856 seq_printf(m, " master:%i", master);
857 if (dom && dom != master)
858 seq_printf(m, " propagate_from:%i", dom);
859 }
855 if (IS_MNT_UNBINDABLE(mnt)) 860 if (IS_MNT_UNBINDABLE(mnt))
856 seq_puts(m, " unbindable"); 861 seq_puts(m, " unbindable");
857 862