[PATCH] Check the mtd device in do_emergency_remount(). Allow superblocks managed by the mtd layer to be remounted. Signed-off-by: Michael Trimarchi --- fs/super.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/super.c b/fs/super.c index 09008db..2f8f924 100644 --- a/fs/super.c +++ b/fs/super.c @@ -627,7 +627,8 @@ static void do_emergency_remount(unsigned long foo) sb->s_count++; spin_unlock(&sb_lock); down_read(&sb->s_umount); - if (sb->s_root && sb->s_bdev && !(sb->s_flags & MS_RDONLY)) { + if (sb->s_root && (sb->s_bdev || sb->s_mtd) + && !(sb->s_flags & MS_RDONLY)) { /* * ->remount_fs needs lock_kernel(). * -- 1.5.3.6