]> err.no Git - linux-2.6/commitdiff
[MTD] Initialise s_flags in get_sb_mtd_aux()
authorDavid Howells <dhowells@redhat.com>
Thu, 30 Aug 2007 16:21:19 +0000 (17:21 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 2 Sep 2007 17:18:46 +0000 (18:18 +0100)
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>
drivers/mtd/mtdsuper.c

index aca331971201ad250bd5d81bfcf908e979a57bdf..9b430f20b640feadf1b9400dc322ee51628a8a9f 100644 (file)
@@ -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",
              mtd->index, mtd->name);
 
+       sb->s_flags = flags;
+
        ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
        if (ret < 0) {
                up_write(&sb->s_umount);