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)
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

diff --cc fs/ext4/dir.c
Simple merge
diff --cc fs/ext4/ext4.h
Simple merge
Simple merge