Check the mtd device in do_emergency_remount()
PATCH 1/1 Check the mtd device in do_emergency_remount()
Allow superblocks managed by the mtd layer to be remounted.
Inviato da Yahoo! Mail.
La casella di posta intelligente.
http://it.docs.yahoo.com/mail/overview/index.html
[PATCH] Check the mtd device in do_emergency_remount().
Allow superblocks managed by the mtd layer to be remounted.
Signed-off-by Michael Trimarchi <[email protected]>
--- fs/super.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
fs/super.c +2 -1
@@ -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(). *
Signature · 1 line
1.5.3.6
Quoted 1 line · Michael Trimarchi
Allow superblocks managed by the mtd layer to be remounted.
Please just rip out do_emergency_remount entirely. It's the equivalent to and attempted full-filesystem revoke and just can't work.