ext4: Calculate and verify checksums for htree nodes
authorDarrick J. Wong <djwong@us.ibm.com>
Sun, 29 Apr 2012 22:39:10 +0000 (18:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Apr 2012 22:39:10 +0000 (18:39 -0400)
commitdbe89444042ab6540bc304343cfdcbc8b95d003d
tree436c6e039ffef3387fcfac0bb699f0b14b4c9ba6
parent7ac5990d5a3e2e465162880819cc46c6427d3b6f
ext4: Calculate and verify checksums for htree nodes

Calculate and verify the checksum for directory index tree (htree)
node blocks.  The checksum is stored in the last 4 bytes of the htree
block and requires the dx_entry array to stop 1 dx_entry short of the
end of the block.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c