From: Amir Goldstein Date: Mon, 28 Feb 2011 05:53:45 +0000 (-0500) Subject: ext4: skip orphan cleanup if fs has unknown ROCOMPAT features X-Git-Tag: v2.6.37.6~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=191095aaab76c04a1c2d410bafd2da1a6a95f476;p=pandora-kernel.git ext4: skip orphan cleanup if fs has unknown ROCOMPAT features commit d39195c33bb1b5fdcb0f416e8a0b34bfdb07a027 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, especially the SNAPSHOT feature. This patch skips the orphan cleanup if it contains readonly compatible features not known by this ext4 implementation, which would prevent the fs from being mounted (or remounted) readwrite. Signed-off-by: Amir Goldstein Signed-off-by: "Theodore Ts'o" Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed