|
@@ -230,12 +230,12 @@ __ext4_xattr_check_block(struct inode *inode, struct buffer_head *bh,
|
|
|
{
|
|
{
|
|
|
int error = -EFSCORRUPTED;
|
|
int error = -EFSCORRUPTED;
|
|
|
|
|
|
|
|
- if (buffer_verified(bh))
|
|
|
|
|
- return 0;
|
|
|
|
|
-
|
|
|
|
|
if (BHDR(bh)->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC) ||
|
|
if (BHDR(bh)->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC) ||
|
|
|
BHDR(bh)->h_blocks != cpu_to_le32(1))
|
|
BHDR(bh)->h_blocks != cpu_to_le32(1))
|
|
|
goto errout;
|
|
goto errout;
|
|
|
|
|
+ if (buffer_verified(bh))
|
|
|
|
|
+ return 0;
|
|
|
|
|
+
|
|
|
error = -EFSBADCRC;
|
|
error = -EFSBADCRC;
|
|
|
if (!ext4_xattr_block_csum_verify(inode, bh))
|
|
if (!ext4_xattr_block_csum_verify(inode, bh))
|
|
|
goto errout;
|
|
goto errout;
|