]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ext2: introduce helper for xattr entry validation
authorChengguang Xu <cgxu519@zoho.com.cn>
Mon, 13 May 2019 22:40:42 +0000 (06:40 +0800)
committerJan Kara <jack@suse.cz>
Mon, 20 May 2019 08:50:48 +0000 (10:50 +0200)
commitf4c3fb8c433f1818da46b720754a5d4a8525fdf0
tree74dda3d85cfd5d1cf864a784c3cacc20c7c94f01
parent02475de9bb23ed5381f0fb04a84a3c4fad90582d
ext2: introduce helper for xattr entry validation

Introduce helper function ext2_xattr_entry_valid()
for xattr entry validation and clean up the entry
check related 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