Skip to content

Commit 39307f8

Browse files
drosen-googleJaegeuk Kim
authored andcommitted
f2fs: Show casefolding support only when supported
The casefolding feature is only supported when CONFIG_UNICODE is set. This modifies the feature list f2fs presents under sysfs accordingly. Fixes: 5aba543 ("f2fs: include charset encoding information in the superblock") Cc: [email protected] # v5.4+ Signed-off-by: Daniel Rosenberg <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent a7d9fe3 commit 39307f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/f2fs/sysfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,9 @@ F2FS_FEATURE_RO_ATTR(lost_found, FEAT_LOST_FOUND);
725725
F2FS_FEATURE_RO_ATTR(verity, FEAT_VERITY);
726726
#endif
727727
F2FS_FEATURE_RO_ATTR(sb_checksum, FEAT_SB_CHECKSUM);
728+
#ifdef CONFIG_UNICODE
728729
F2FS_FEATURE_RO_ATTR(casefold, FEAT_CASEFOLD);
730+
#endif
729731
F2FS_FEATURE_RO_ATTR(readonly, FEAT_RO);
730732
#ifdef CONFIG_F2FS_FS_COMPRESSION
731733
F2FS_FEATURE_RO_ATTR(compression, FEAT_COMPRESSION);
@@ -836,7 +838,9 @@ static struct attribute *f2fs_feat_attrs[] = {
836838
ATTR_LIST(verity),
837839
#endif
838840
ATTR_LIST(sb_checksum),
841+
#ifdef CONFIG_UNICODE
839842
ATTR_LIST(casefold),
843+
#endif
840844
ATTR_LIST(readonly),
841845
#ifdef CONFIG_F2FS_FS_COMPRESSION
842846
ATTR_LIST(compression),

0 commit comments

Comments
 (0)