Skip to content

Commit dde38c0

Browse files
Sheng YongJaegeuk Kim
authored andcommitted
f2fs: cleanup MIN_INLINE_XATTR_SIZE
Signed-off-by: Sheng Yong <shengyong@oppo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent c571fbb commit dde38c0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

fs/f2fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
13631363
return -EINVAL;
13641364
}
13651365

1366-
min_size = sizeof(struct f2fs_xattr_header) / sizeof(__le32);
1366+
min_size = MIN_INLINE_XATTR_SIZE;
13671367
max_size = MAX_INLINE_XATTR_SIZE;
13681368

13691369
if (F2FS_OPTION(sbi).inline_xattr_size < min_size ||

fs/f2fs/xattr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ struct f2fs_xattr_entry {
8383
sizeof(struct f2fs_xattr_header) - \
8484
sizeof(struct f2fs_xattr_entry))
8585

86+
#define MIN_INLINE_XATTR_SIZE (sizeof(struct f2fs_xattr_header) / sizeof(__le32))
8687
#define MAX_INLINE_XATTR_SIZE \
8788
(DEF_ADDRS_PER_INODE - \
8889
F2FS_TOTAL_EXTRA_ATTR_SIZE / sizeof(__le32) - \

0 commit comments

Comments
 (0)