Skip to content

Commit 617e049

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: sysfs: export linear_lookup in features directory
cat /sys/fs/f2fs/features/linear_lookup supported Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 3fea064 commit 617e049

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Documentation/ABI/testing/sysfs-fs-f2fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Description: Shows all enabled kernel features.
270270
inode_checksum, flexible_inline_xattr, quota_ino,
271271
inode_crtime, lost_found, verity, sb_checksum,
272272
casefold, readonly, compression, test_dummy_encryption_v2,
273-
atomic_write, pin_file, encrypted_casefold.
273+
atomic_write, pin_file, encrypted_casefold, linear_lookup.
274274

275275
What: /sys/fs/f2fs/<disk>/inject_rate
276276
Date: May 2016

fs/f2fs/sysfs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,9 @@ F2FS_FEATURE_RO_ATTR(readonly);
12071207
F2FS_FEATURE_RO_ATTR(compression);
12081208
#endif
12091209
F2FS_FEATURE_RO_ATTR(pin_file);
1210+
#ifdef CONFIG_UNICODE
1211+
F2FS_FEATURE_RO_ATTR(linear_lookup);
1212+
#endif
12101213

12111214
#define ATTR_LIST(name) (&f2fs_attr_##name.attr)
12121215
static struct attribute *f2fs_attrs[] = {
@@ -1356,6 +1359,9 @@ static struct attribute *f2fs_feat_attrs[] = {
13561359
BASE_ATTR_LIST(compression),
13571360
#endif
13581361
BASE_ATTR_LIST(pin_file),
1362+
#ifdef CONFIG_UNICODE
1363+
BASE_ATTR_LIST(linear_lookup),
1364+
#endif
13591365
NULL,
13601366
};
13611367
ATTRIBUTE_GROUPS(f2fs_feat);

0 commit comments

Comments
 (0)