lkml.org 
[lkml]   [2008]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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 <michael@evidence.eu.com>

---
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
\
 
 \ /
  Last update: 2008-04-21 18:29    [W:0.026 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site