[PATCH] Check the mtd device in do_emergency_remount()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>

---
 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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux