Skip to content

Commit

Permalink
ext4: error should be cleared if ea_inode isn't added to the cache
Browse files Browse the repository at this point in the history
For Lustre, if ea_inode fails in hash validation but passes parent
inode and generation checks, it won't be added to the cache as well
as the error "-EFSCORRUPTED" should be cleared, otherwise it will
cause "Structure needs cleaning" when running getfattr command.

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9723

Cc: [email protected]
Fixes: dec214d
Signed-off-by: Emoly Liu <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Reviewed-by: [email protected]
  • Loading branch information
Emoly Liu authored and tytso committed Jul 31, 2017
1 parent a3bb2d5 commit 191eac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ ext4_xattr_inode_get(struct inode *inode, struct ext4_xattr_entry *entry,
}
/* Do not add ea_inode to the cache. */
ea_inode_cache = NULL;
err = 0;
} else if (err)
goto out;

Expand Down

0 comments on commit 191eac3

Please sign in to comment.