diff options
author | Jan Kara <jack@suse.cz> | 2011-03-17 16:44:22 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-03-17 16:44:22 +0100 |
commit | 0c755de03e69619c768867d89e6d827d3afa13d9 (patch) | |
tree | 7c9f061ba67aa2672038c7913c66eed4c9584d6d /fs/ext3/super.c | |
parent | e8a80c6f769dd4622d8b211b398452158ee60c0b (diff) | |
parent | d7433142b63d727b5a217c37b1a1468b116a9771 (diff) | |
download | op-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.c | 7 |
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, " |