From: Tahsin Erdogan Date: Thu, 22 Jun 2017 01:41:37 +0000 (-0400) Subject: ext4: extended attribute value size limit is enforced by vfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0eefb10758e696616f19a84d8c5f15b9ffc0dccd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ext4: extended attribute value size limit is enforced by vfs EXT4_XATTR_MAX_LARGE_EA_SIZE definition in ext4 is currently unused. Besides, vfs enforces its own 64k limit which makes the 1MB limit in ext4 redundant. Remove it. Signed-off-by: Tahsin Erdogan Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index bc80082a2375..9b6a10e1bf18 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2231,12 +2231,6 @@ struct mmpd_data { */ #define EXT4_MMP_MAX_CHECK_INTERVAL 300UL -/* - * Maximum size of xattr attributes for FEATURE_INCOMPAT_EA_INODE 1Mb - * This limit is arbitrary, but is reasonable for the xattr API. - */ -#define EXT4_XATTR_MAX_LARGE_EA_SIZE (1024 * 1024) - /* * Function prototypes */