f2fs: sysfs: add encoding_flags entry
Subsystems (2)
Chao Yu
maintainerPATCH 1/2 f2fs: sysfs: add encoding_flags entry
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========
case#1
mkfs.f2fs -f -O casefold -C utf8:strict /dev/vda
mount /dev/vda /mnt/f2fs
cat /sys/fs/f2fs/vda/encoding_flags
1
case#2
mkfs.f2fs -f -O casefold -C utf8 /dev/vda
fsck.f2fs --nolinear-lookup=1 /dev/vda
mount /dev/vda /mnt/f2fs
cat /sys/fs/f2fs/vda/encoding_flags
2
--- Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++ fs/f2fs/sysfs.c | 9 +++++++++ 2 files changed, 22 insertions(+)
Documentation/ABI/testing/sysfs-fs-f2fs +13 -0
@@ -846,3 +846,16 @@ Description: For several zoned storage devices, vendors will provide extra space reserved_blocks. However, it is not enough, since this extra space should not be shown to users. So, with this new sysfs node, we can hide the space by substracting reserved_blocks from total bytes. + +What: /sys/fs/f2fs/<disk>/encoding_flags +Date: April 2025 +Contact: "Chao Yu" <[email protected]> +Description: This is a read-only entry to show the value of sb.s_encoding_flags, the + value is hexadecimal. + + =========================== ========== + Flag_Name Flag_Value + =========================== ========== + SB_ENC_STRICT_MODE_FL 0x00000001 + SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 + =========================== ==========
fs/f2fs/sysfs.c +9 -0
@@ -274,6 +274,13 @@ static ssize_t encoding_show(struct f2fs_attr *a,return sysfs_emit (buf,"(none)\n" ); } +static ssize_t encoding_flags_show (struct f2fs_attr *a, +struct f2fs_sb_info *sbi,char *buf) +{ +return sysfs_emit (buf,"%x\n" , +le16_to_cpu (F2FS_RAW_SUPER (sbi)->s_encoding_flags)); +} +static ssize_t mounted_time_sec_show (struct f2fs_attr *a,struct f2fs_sb_info *sbi,char *buf) {
@@ -1158,6 +1165,7 @@ F2FS_GENERAL_RO_ATTR(features);F2FS_GENERAL_RO_ATTR (current_reserved_blocks);F2FS_GENERAL_RO_ATTR (unusable);F2FS_GENERAL_RO_ATTR (encoding); +F2FS_GENERAL_RO_ATTR (encoding_flags);F2FS_GENERAL_RO_ATTR (mounted_time_sec);F2FS_GENERAL_RO_ATTR (main_blkaddr);F2FS_GENERAL_RO_ATTR (pending_discard);
@@ -1270,6 +1278,7 @@ static struct attribute *f2fs_attrs[] = {ATTR_LIST (reserved_blocks),ATTR_LIST (current_reserved_blocks),ATTR_LIST (encoding), +ATTR_LIST (encoding_flags),ATTR_LIST (mounted_time_sec), #ifdef CONFIG_F2FS_STAT_FS ATTR_LIST(cp_foreground_calls),
Signature · 1 line
2.49.0
Chao Yu
maintainerPATCH 2/2 f2fs: sysfs: export linear_lookup in features directory
cat /sys/fs/f2fs/features/linear_lookup
supported
--- Documentation/ABI/testing/sysfs-fs-f2fs | 2 +- fs/f2fs/sysfs.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-fs-f2fs +1 -1
@@ -270,7 +270,7 @@ Description: Shows all enabled kernel features. inode_checksum, flexible_inline_xattr, quota_ino, inode_crtime, lost_found, verity, sb_checksum, casefold, readonly, compression, test_dummy_encryption_v2, - atomic_write, pin_file, encrypted_casefold. + atomic_write, pin_file, encrypted_casefold, linear_lookup. What: /sys/fs/f2fs/<disk>/inject_rate Date: May 2016
fs/f2fs/sysfs.c +6 -0
@@ -1207,6 +1207,9 @@ F2FS_FEATURE_RO_ATTR(readonly);F2FS_FEATURE_RO_ATTR (compression);#endif F2FS_FEATURE_RO_ATTR (pin_file); +#ifdef CONFIG_UNICODE +F2FS_FEATURE_RO_ATTR (linear_lookup); +#endif #define ATTR_LIST (name) (&f2fs_attr_##name.attr)static struct attribute *f2fs_attrs[] = {
@@ -1356,6 +1359,9 @@ static struct attribute *f2fs_feat_attrs[] = { BASE_ATTR_LIST(compression), #endif BASE_ATTR_LIST(pin_file), +#ifdef CONFIG_UNICODE + BASE_ATTR_LIST(linear_lookup), +#endif NULL, }; ATTRIBUTE_GROUPS(f2fs_feat);
Signature · 1 line
2.49.0
Sasha Levin
maintainerRe: [PATCH 2/2] f2fs: sysfs: export linear_lookup in features directory
[ Sasha's backport helper bot ]
Hi,
Summary of potential issues:
ℹ️ This is part 2/2 of a series
⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: 617e0491abe4d8d45c5110ca474c0feb428e6828
Note: The patch differs from the upstream commit:
---
1: 617e0491abe4d ! 1: 4c702e18f9b37 f2fs: sysfs: export linear_lookup in features directory
@@ Commit message
supported
- Signed-off-by: Jaegeuk Kim <[email protected]>
## Documentation/ABI/testing/sysfs-fs-f2fs ##
@@ Documentation/ABI/testing/sysfs-fs-f2fs: Description: Shows all enabled kernel features.
---
NOTE: These results are for this patch alone. Full series testing will be performed when all parts are received.
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.4.y | Success | Success |
This series was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This series was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 4 lines · On Wed, 16 Apr 2025 13:48:04 +0800 you wrote:
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
Quoted 8 lines
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========[...]
Here is the summary with links:
- [f2fs-dev,1/2] f2fs: sysfs: add encoding_flags entry
https://git.kernel.org/jaegeuk/f2fs/c/0d56663919d2 - [f2fs-dev,2/2] f2fs: sysfs: export linear_lookup in features directory https://git.kernel.org/jaegeuk/f2fs/c/217fc63224a9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 24 lines · Chao Yu
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========case#1
mkfs.f2fs -f -O casefold -C utf8:strict/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
1case#2
mkfs.f2fs -f -O casefold -C utf8/dev/vda
fsck.f2fs --nolinear-lookup=1/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
2
Quoted 5 lines
Signed-off-by Chao Yu <[email protected]>--- Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++ fs/f2fs/sysfs.c | 9 +++++++++ 2 files changed, 22 insertions(+)
This patch, commit 617e0491abe4 ("f2fs: sysfs: export linear_lookup in features directory") upstream, needs to find its way into all Stable branches containing upstream commit 91b587ba79e1 ("f2fs: Introduce linear search for dentries"), which is essentially linux-5.15.y and newer.
stable/linux-5.4.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directory
stable/linux-5.10.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directory
stable/linux-5.15.y:b0938ffd39ae f2fs: Introduce linear search for dentries [5.15.179]
MISSING: f2fs: sysfs: export linear_lookup in features directory
stable/linux-6.1.y:de605097eb17 f2fs: Introduce linear search for dentries [6.1.129]
MISSING: f2fs: sysfs: export linear_lookup in features directory
stable/linux-6.6.y:0bf2adad03e1 f2fs: Introduce linear search for dentries [6.6.76]
MISSING: f2fs: sysfs: export linear_lookup in features directory
stable/linux-6.12.y:00d1943fe46d f2fs: Introduce linear search for dentries [6.12.13]
MISSING: f2fs: sysfs: export linear_lookup in features directory
mainline:91b587ba79e1 f2fs: Introduce linear search for dentries 617e0491abe4 f2fs: sysfs: export linear_lookup in features directory
Quoted 42 lines
(quoted diff) +0
-0b/Documentation/ABI/testing/sysfs-fs-f2fs index
59adb7dc6f9e..0dbe6813b709100644 --- a/Documentation/ABI/testing/sysfs-fs-f2fs +++ b/Documentation/ABI/testing/sysfs-fs-f2fs @@ -846,3 +846,16 @@
Description: For several zoned storage devices, vendors will provide
extra spacereserved_blocks. However, it is not enough, since this extra space should not be shown to users. So, with this new sysfs node, we can hide the space by substractingreserved_blocksfrom total
bytes. + +What: /sys/fs/f2fs/<disk>/encoding_flags
+Date: April 2025 +Contact: "Chao Yu"
<[email protected]> +Description: This is a read-only entry to
show the value of sb.s_encoding_flags, the + value is
hexadecimal. + + ===========================
========== +Flag_NameFlag_Value+=========================== ========== + SB_ENC_STRICT_MODE_FL 0x00000001 + SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 + =========================== ========== diff --git
a/fs/f2fs/sysfs.cb/fs/f2fs/sysfs.cindex3a3485622691..cf98c5cbb98a100644 ---a/fs/f2fs/sysfs.c+++b/fs/f2fs/sysfs.c@@ -274,6 +274,13 @@ staticssize_tencoding_show(structf2fs_attr*a, returnsysfs_emit(buf, "(none)\n"); }+static
ssize_tencoding_flags_show(structf2fs_attr*a, +
structf2fs_sb_info*sbi, char *buf) +{ + return sysfs_emit(buf,
"%x\n", + le16_to_cpu(F2FS_RAW_SUPER(sbi)->s_encoding_flags)); +} + staticssize_tmounted_time_sec_show(struct f2fs_attr *a, struct f2fs_sb_info *sbi, char *buf){ @@ -1158,6 +1165,7 @@F2FS_GENERAL_RO_ATTR(features);F2FS_GENERAL_RO_ATTR(current_reserved_blocks);F2FS_GENERAL_RO_ATTR(unusable);F2FS_GENERAL_RO_ATTR(encoding); +F2FS_GENERAL_RO_ATTR(encoding_flags);F2FS_GENERAL_RO_ATTR(mounted_time_sec);F2FS_GENERAL_RO_ATTR(main_blkaddr);F2FS_GENERAL_RO_ATTR(pending_discard); @@ -1270,6 +1278,7 @@ static struct attribute *f2fs_attrs[] = {ATTR_LIST(reserved_blocks),ATTR_LIST(current_reserved_blocks),ATTR_LIST(encoding), +ATTR_LIST(encoding_flags),ATTR_LIST(mounted_time_sec), #ifdefCONFIG_F2FS_STAT_FSATTR_LIST(cp_foreground_calls), -- 2.49.0
Signature · 1 line
Lee Jones [李琼斯]
Greg Kroah-Hartman
maintainerQuoted 58 lines · Lee Jones
Quoted 24 lines · Chao Yu
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========case#1
mkfs.f2fs -f -O casefold -C utf8:strict/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
1case#2
mkfs.f2fs -f -O casefold -C utf8/dev/vda
fsck.f2fs --nolinear-lookup=1/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
2Quoted 5 lines
Signed-off-by Chao Yu <[email protected]>--- Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++ fs/f2fs/sysfs.c | 9 +++++++++ 2 files changed, 22 insertions(+)This patch, commit
617e0491abe4("f2fs: sysfs: exportlinear_lookupin features directory") upstream, needs to find its way into all Stable branches containing upstream commit91b587ba79e1("f2fs: Introduce linear search for dentries"), which is essentially linux-5.15.y and newer.stable/linux-5.4.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.10.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.15.y:
b0938ffd39aef2fs: Introduce linear search for dentries [5.15.179]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.1.y:
de605097eb17f2fs: Introduce linear search for dentries [6.1.129]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.6.y:
0bf2adad03e1f2fs: Introduce linear search for dentries [6.6.76]
MISSING: f2fs: sysfs: exportlinear_lookupin features directory
Quoted 7 lines
stable/linux-6.12.y:
00d1943fe46df2fs: Introduce linear search for dentries [6.12.13]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorymainline:
91b587ba79e1f2fs: Introduce linear search for dentries617e0491abe4f2fs: sysfs: exportlinear_lookupin features directory
Great, then can someone submit these in a format we can apply them in? or do clean cherry-picks work properly?
thanks,
greg k-h
Quoted 63 lines · Greg Kroah-Hartman
Quoted 62 lines · Lee Jones
Quoted 24 lines · Chao Yu
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========case#1
mkfs.f2fs -f -O casefold -C utf8:strict/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
1case#2
mkfs.f2fs -f -O casefold -C utf8/dev/vda
fsck.f2fs --nolinear-lookup=1/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
2Quoted 5 lines
Signed-off-by Chao Yu <[email protected]>--- Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++ fs/f2fs/sysfs.c | 9 +++++++++ 2 files changed, 22 insertions(+)This patch, commit
617e0491abe4("f2fs: sysfs: exportlinear_lookupin features directory") upstream, needs to find its way into all Stable branches containing upstream commit91b587ba79e1("f2fs: Introduce linear search for dentries"), which is essentially linux-5.15.y and newer.stable/linux-5.4.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.10.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.15.y:
b0938ffd39aef2fs: Introduce linear search for dentries [5.15.179]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.1.y:
de605097eb17f2fs: Introduce linear search for dentries [6.1.129]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.6.y:
0bf2adad03e1f2fs: Introduce linear search for dentries [6.6.76]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.12.y:
00d1943fe46df2fs: Introduce linear search for dentries [6.12.13]
MISSING: f2fs: sysfs: exportlinear_lookupin features directory
Quoted 6 lines
Quoted 3 lines
mainline:
91b587ba79e1f2fs: Introduce linear search for dentries617e0491abe4f2fs: sysfs: exportlinear_lookupin features directoryGreat, then can someone submit these in a format we can apply them in? or do clean cherry-picks work properly?
Does this work:
Please backport upstream commit:
617e0491abe4 f2fs: sysfs: export linear_lookup in features directory
... to all stable branches up to and including linux-5.15.y.
If there are conflicts, I can do the backport myself and submit as patches.
Signature · 1 line
Lee Jones [李琼斯]
Greg Kroah-Hartman
maintainerQuoted 74 lines · Lee Jones
Quoted 63 lines · Greg Kroah-Hartman
Quoted 62 lines · Lee Jones
Quoted 24 lines · Chao Yu
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========case#1
mkfs.f2fs -f -O casefold -C utf8:strict/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
1case#2
mkfs.f2fs -f -O casefold -C utf8/dev/vda
fsck.f2fs --nolinear-lookup=1/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
2Quoted 5 lines
Signed-off-by Chao Yu <[email protected]>--- Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++ fs/f2fs/sysfs.c | 9 +++++++++ 2 files changed, 22 insertions(+)This patch, commit
617e0491abe4("f2fs: sysfs: exportlinear_lookupin features directory") upstream, needs to find its way into all Stable branches containing upstream commit91b587ba79e1("f2fs: Introduce linear search for dentries"), which is essentially linux-5.15.y and newer.stable/linux-5.4.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.10.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.15.y:
b0938ffd39aef2fs: Introduce linear search for dentries [5.15.179]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.1.y:
de605097eb17f2fs: Introduce linear search for dentries [6.1.129]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.6.y:
0bf2adad03e1f2fs: Introduce linear search for dentries [6.6.76]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.12.y:
00d1943fe46df2fs: Introduce linear search for dentries [6.12.13]
MISSING: f2fs: sysfs: exportlinear_lookupin features directoryQuoted 6 lines
Quoted 3 lines
mainline:
91b587ba79e1f2fs: Introduce linear search for dentries617e0491abe4f2fs: sysfs: exportlinear_lookupin features directoryGreat, then can someone submit these in a format we can apply them in? or do clean cherry-picks work properly?
Does this work:
Quoted 7 lines
Please backport upstream commit:
617e0491abe4f2fs: sysfs: exportlinear_lookupin features directory... to all stable branches up to and including linux-5.15.y.
If there are conflicts, I can do the backport myself and submit as patches.
There are conflicts, it doesn't apply to 6.1.y or 5.15.y :(
thanks,
greg k-h
Quoted 77 lines · Greg Kroah-Hartman
Quoted 76 lines · Lee Jones
Quoted 63 lines · Greg Kroah-Hartman
Quoted 62 lines · Lee Jones
Quoted 24 lines · Chao Yu
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
=========================== ========== Flag_Name Flag_Value =========================== ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 =========================== ==========case#1
mkfs.f2fs -f -O casefold -C utf8:strict/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
1case#2
mkfs.f2fs -f -O casefold -C utf8/dev/vda
fsck.f2fs --nolinear-lookup=1/dev/vda
mount/dev/vda/mnt/f2fs
cat/sys/fs/f2fs/vda/encoding_flags
2Quoted 5 lines
Signed-off-by Chao Yu <[email protected]>--- Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++ fs/f2fs/sysfs.c | 9 +++++++++ 2 files changed, 22 insertions(+)This patch, commit
617e0491abe4("f2fs: sysfs: exportlinear_lookupin features directory") upstream, needs to find its way into all Stable branches containing upstream commit91b587ba79e1("f2fs: Introduce linear search for dentries"), which is essentially linux-5.15.y and newer.stable/linux-5.4.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.10.y:
MISSING: f2fs: Introduce linear search for dentries MISSING: f2fs: sysfs: export linear_lookup in features directorystable/linux-5.15.y:
b0938ffd39aef2fs: Introduce linear search for dentries [5.15.179]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.1.y:
de605097eb17f2fs: Introduce linear search for dentries [6.1.129]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.6.y:
0bf2adad03e1f2fs: Introduce linear search for dentries [6.6.76]
MISSING: f2fs: sysfs: exportlinear_lookupin features directorystable/linux-6.12.y:
00d1943fe46df2fs: Introduce linear search for dentries [6.12.13]
MISSING: f2fs: sysfs: exportlinear_lookupin features directoryQuoted 6 lines
Quoted 3 lines
mainline:
91b587ba79e1f2fs: Introduce linear search for dentries617e0491abe4f2fs: sysfs: exportlinear_lookupin features directoryGreat, then can someone submit these in a format we can apply them in? or do clean cherry-picks work properly?
Does this work:
Please backport upstream commit:
Quoted 7 lines
Quoted 5 lines
617e0491abe4f2fs: sysfs: exportlinear_lookupin features directory... to all stable branches up to and including linux-5.15.y.
If there are conflicts, I can do the backport myself and submit as patches.
There are conflicts, it doesn't apply to 6.1.y or 5.15.y :(
Okay, thanks for trying. Leave it with me.
Signature · 1 line
Lee Jones [李琼斯]
Sasha Levin
maintainer[ Sasha's backport helper bot ]
Hi,
Summary of potential issues:
⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: 3fea0641b06ff4e53d95d07a96764d8951d4ced6
Note: The patch differs from the upstream commit:
---
1: 3fea0641b06ff ! 1: 14acd457cfe03 f2fs: sysfs: add encoding_flags entry
@@ Commit message
it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal.
- ============================ ==========
+ =========================== ==========
Flag_Name Flag_Value
- ============================ ==========
+ =========================== ==========
SB_ENC_STRICT_MODE_FL 0x00000001
SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002
- ============================ ==========
+ =========================== ==========
case#1
mkfs.f2fs -f -O casefold -C utf8:strict /dev/vda
@@ Commit message
2
- Signed-off-by: Jaegeuk Kim <[email protected]>
## Documentation/ABI/testing/sysfs-fs-f2fs ##
@@ Documentation/ABI/testing/sysfs-fs-f2fs: Description: For several zoned storage devices, vendors will provide extra space
@@ Documentation/ABI/testing/sysfs-fs-f2fs: Description: For several zoned storage
+Description: This is a read-only entry to show the value of sb.s_encoding_flags, the
+ value is hexadecimal.
+
-+ ============================ ==========
++ =========================== ==========
+ Flag_Name Flag_Value
-+ ============================ ==========
++ =========================== ==========
+ SB_ENC_STRICT_MODE_FL 0x00000001
+ SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002
-+ ============================ ==========
++ =========================== ==========
## fs/f2fs/sysfs.c ##
@@ fs/f2fs/sysfs.c: static ssize_t encoding_show(struct f2fs_attr *a,
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.4.y | Success | Success |