]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't verify checksums of dx non-leaf nodes during fallback scan
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 13 Nov 2012 04:51:02 +0000 (23:51 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 Nov 2012 04:51:02 +0000 (23:51 -0500)
commit4974f43b0788ecd85f488b36ffac2f3a1c674e68
treedb474fa8ae82cf4f4ca56294cf92a2ee422179fc
parentc6b6b6c89ebc4521c988680449b5af0b21010b69
ext4: don't verify checksums of dx non-leaf nodes during fallback scan

During a directory entry lookup of a hashed directory, if the
hash-based lookup functions fail and we fall back to a linear scan,
don't try to verify the dirent checksum on the internal nodes of the
hash tree because they don't store a checksum in a hidden dirent like
the leaf nodes do.

Reported-by: George Spelvin <linux@horizon.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c