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 | ext2: Fix link count corruption under heavy link+rename load (diff) | |
parent | ext3: Always set dx_node's fake_dirent explicitly. (diff) | |
download | linux-0c755de03e69619c768867d89e6d827d3afa13d9.tar.xz linux-0c755de03e69619c768867d89e6d827d3afa13d9.zip |
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 85c8cc8f2473..0d62f29f213a 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, " |