diff options
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 48fe7c883d27..98d2717e9027 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -265,6 +265,7 @@ int get_sb_pseudo(struct file_system_type *fs_type, char *name, d_instantiate(dentry, root); s->s_root = dentry; s->s_flags |= MS_ACTIVE; + WARN_ON(mnt->mnt_flags & MNT_MOUNTED); mnt->mnt_flags |= MNT_MOUNTED; simple_set_mnt(mnt, s); return 0; |