From 8909cd6ba5e193efa3ec805d65725c69904c573d Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Sat, 10 Feb 2007 01:46:08 -0800 Subject: [PATCH] --- yaml --- r: 47593 b: refs/heads/master c: ead6596b9e776ac32d82f7d1931d7638e6d4a7bd h: refs/heads/master i: 47591: 174256aba7a8de23b05747539800664d2c7b45c7 v: v3 --- [refs] | 2 +- trunk/fs/ext4/super.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2c5aa58f51fa..253c766a9b01 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ea9a05a1330053759c02eb2c60547085140a4cbd +refs/heads/master: ead6596b9e776ac32d82f7d1931d7638e6d4a7bd diff --git a/trunk/fs/ext4/super.c b/trunk/fs/ext4/super.c index 486a641ca71b..463b52b32a0e 100644 --- a/trunk/fs/ext4/super.c +++ b/trunk/fs/ext4/super.c @@ -2419,6 +2419,22 @@ static int ext4_remount (struct super_block * sb, int * flags, char * data) err = -EROFS; goto restore_opts; } + + /* + * If we have an unprocessed orphan list hanging + * around from a previously readonly bdev mount, + * require a full umount/remount for now. + */ + if (es->s_last_orphan) { + printk(KERN_WARNING "EXT4-fs: %s: couldn't " + "remount RDWR because of unprocessed " + "orphan inode list. Please " + "umount/remount instead.\n", + sb->s_id); + err = -EINVAL; + goto restore_opts; + } + /* * Mounting a RDONLY partition read-write, so reread * and store the current valid flag. (It may have