Browse Source

[MTD] Initialise s_flags in get_sb_mtd_aux()

Initialise s_flags in get_sb_mtd_aux() from the flags parameter.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Howells 17 years ago
parent
commit
48440e893d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/mtd/mtdsuper.c

+ 2 - 0
drivers/mtd/mtdsuper.c

@@ -70,6 +70,8 @@ static int get_sb_mtd_aux(struct file_system_type *fs_type, int flags,
 	DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n",
 	DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n",
 	      mtd->index, mtd->name);
 	      mtd->index, mtd->name);
 
 
+	sb->s_flags = flags;
+
 	ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
 	ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
 	if (ret < 0) {
 	if (ret < 0) {
 		up_write(&sb->s_umount);
 		up_write(&sb->s_umount);