summaryrefslogtreecommitdiffstats
path: root/fs/ext3/super.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2011-03-17 16:44:22 +0100
committerJan Kara <jack@suse.cz>2011-03-17 16:44:22 +0100
commit0c755de03e69619c768867d89e6d827d3afa13d9 (patch)
tree7c9f061ba67aa2672038c7913c66eed4c9584d6d /fs/ext3/super.c
parente8a80c6f769dd4622d8b211b398452158ee60c0b (diff)
parentd7433142b63d727b5a217c37b1a1468b116a9771 (diff)
downloadop-kernel-dev-0c755de03e69619c768867d89e6d827d3afa13d9.zip
op-kernel-dev-0c755de03e69619c768867d89e6d827d3afa13d9.tar.gz
Merge branch 'for_next' into for_linus
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r--fs/ext3/super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 85c8cc8..0d62f29 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -1464,6 +1464,13 @@ static void ext3_orphan_cleanup (struct super_block * sb,
return;
}
+ /* Check if feature set allows readwrite operations */
+ if (EXT3_HAS_RO_COMPAT_FEATURE(sb, ~EXT3_FEATURE_RO_COMPAT_SUPP)) {
+ ext3_msg(sb, KERN_INFO, "Skipping orphan cleanup due to "
+ "unknown ROCOMPAT features");
+ return;
+ }
+
if (EXT3_SB(sb)->s_mount_state & EXT3_ERROR_FS) {
if (es->s_last_orphan)
jbd_debug(1, "Errors on filesystem, "
OpenPOWER on IntegriCloud