From: Michael Trimarchi <trimarchimichael@yahoo.it>
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Michael Trimarchi <michael@evidence.eu.com>
Subject: [PATCH] Check the mtd device in do_emergency_remount()
Date: Mon, 21 Apr 2008 16:27:05 +0000 (GMT) [thread overview]
Message-ID: <561772.43514.qm@web26207.mail.ukl.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: check-mtd-device-emergency-remount.patch --]
[-- Type: text/x-patch; name="check-mtd-device-emergency-remount.patch", Size: 721 bytes --]
[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
next reply other threads:[~2008-04-21 16:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 16:27 Michael Trimarchi [this message]
2008-04-21 17:48 ` [PATCH] Check the mtd device in do_emergency_remount() Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=561772.43514.qm@web26207.mail.ukl.yahoo.com \
--to=trimarchimichael@yahoo.it \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@evidence.eu.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).