]> git.kernelconcepts.de Git - karo-tx-linux.git/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 Sep 2007 17:54:38 +0000 (10:54 -0700)
changeset 48440e893d700fb8f0de95fa7d748b711d290365 from mainline.

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>
Cc: Jason Lunz <lunz@falooley.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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);