ext3: skip orphan cleanup on rocompat fs
authorAmir Goldstein <amir73il@gmail.com>
Sat, 26 Feb 2011 20:40:19 +0000 (22:40 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:15 +0000 (12:47 -0400)
commitf65f5fdea719a4298dcc48852f257a187bfa711c
tree894dcb794920ee5fc38354353d5829d8b21958ea
parentd29d77abac1393a55f90add1324d1aa9239e2a6c
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ext3/super.c