ext2: introduce helper for xattr header validation
authorChengguang Xu <cgxu519@zoho.com.cn>
Mon, 13 May 2019 22:40:41 +0000 (06:40 +0800)
committerJan Kara <jack@suse.cz>
Mon, 20 May 2019 08:50:48 +0000 (10:50 +0200)
commit02475de9bb23ed5381f0fb04a84a3c4fad90582d
tree26adb54a3bdace85ae14c84bcb914da76ba711da
parentf44840ad1f822d9ecee6a3f91f2d17825a361307
ext2: introduce helper for xattr header validation

Introduce helper function ext2_xattr_header_valid()
for xattr header validation and clean up the header
check ralated code.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/xattr.c