ext4: check inline directory before converting
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Jul 2014 17:06:26 +0000 (13:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Jul 2014 17:06:26 +0000 (13:06 -0400)
commit40b163f1c45f52752677e66d2fd273dbfd273a22
tree9047b84d0ab4086388c351d2f49e3ed1fba576d0
parent6e2631463f3a2ce430a295c68aead3ff228ca3cf
ext4: check inline directory before converting

Before converting an inline directory to a regular directory, check
the directory entries to make sure they're not obviously broken.
This helps us to avoid a BUG_ON if one of the dirents is trashed.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/inline.c