ext4: correct error value of function verifying dx checksum
authorDaeho Jeong <daeho.jeong@samsung.com>
Mon, 4 Jul 2016 01:11:08 +0000 (21:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 4 Jul 2016 01:11:08 +0000 (21:11 -0400)
commitfa96454069b85a7e5d10f38b7d95edcd5dc64b9a
treec3e810170e7e389b0bdd6583d0a7b2c01352d04f
parentb47820edd1634dc1208f9212b7ecfb4230610a23
ext4: correct error value of function verifying dx checksum

ext4_dx_csum_verify() returns the success return value in two checksum
verification failure cases. We need to set the return values to zero
as failure like ext4_dirent_csum_verify() returning zero when failing
to find a checksum dirent at the tail.

Signed-off-by: Daeho Jeong <daeho.jeong@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/ext4/namei.c