ext3: skip orphan cleanup on rocompat fs
commitfada60ade886aaadc196cb30381e55620336bb19
authorAmir Goldstein <amir73il@gmail.com>
Sat, 26 Feb 2011 20:40:19 +0000 (26 22:40 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Mar 2011 14:31:20 +0000 (28 07:31 -0700)
tree587af65bdd5015b822a6642ebd115101e0516f3a
parentba8c721fdba8bfee6f87725cad3bbc28e20f9692
ext3: skip orphan cleanup on rocompat fs

commit ce654b37f87980d95f339080e4c3bdb2370bdf22 upstream.

Orphan cleanup is currently executed even if the file system has some
number of unknown ROCOMPAT features, which deletes inodes and frees
blocks, which could be very bad for some RO_COMPAT features.

This patch skips the orphan cleanup if it contains readonly compatible
features not known by this ext3 implementation, which would prevent
the fs from being mounted (or remounted) readwrite.

Signed-off-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext3/super.c