* [PATCH 1/2] f2fs: sysfs: add encoding_flags entry
@ 2025-04-16 5:48 Chao Yu
2025-04-16 5:48 ` [PATCH 2/2] f2fs: sysfs: export linear_lookup in features directory Chao Yu
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Chao Yu @ 2025-04-16 5:48 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, 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
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
Signed-off-by: Chao Yu <chao@kernel.org>
---
Documentation/ABI/testing/sysfs-fs-f2fs | 13 +++++++++++++
fs/f2fs/sysfs.c | 9 +++++++++
2 files changed, 22 insertions(+)
diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs b/Documentation/ABI/testing/sysfs-fs-f2fs
index 59adb7dc6f9e..0dbe6813b709 100644
--- 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 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" <chao@kernel.org>
+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
+ =========================== ==========
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index 3a3485622691..cf98c5cbb98a 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -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),
--
2.49.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] f2fs: sysfs: export linear_lookup in features directory
2025-04-16 5:48 [PATCH 1/2] f2fs: sysfs: add encoding_flags entry Chao Yu
@ 2025-04-16 5:48 ` Chao Yu
2025-04-28 22:40 ` [f2fs-dev] [PATCH 1/2] f2fs: sysfs: add encoding_flags entry patchwork-bot+f2fs
2025-06-24 10:00 ` [STABLE 5.15+] " Lee Jones
2 siblings, 0 replies; 8+ messages in thread
From: Chao Yu @ 2025-04-16 5:48 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, Chao Yu
cat /sys/fs/f2fs/features/linear_lookup
supported
Signed-off-by: Chao Yu <chao@kernel.org>
---
Documentation/ABI/testing/sysfs-fs-f2fs | 2 +-
fs/f2fs/sysfs.c | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs b/Documentation/ABI/testing/sysfs-fs-f2fs
index 0dbe6813b709..c805a48dd3dc 100644
--- a/Documentation/ABI/testing/sysfs-fs-f2fs
+++ b/Documentation/ABI/testing/sysfs-fs-f2fs
@@ -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
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index cf98c5cbb98a..75134d69a0bd 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -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);
--
2.49.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [f2fs-dev] [PATCH 1/2] f2fs: sysfs: add encoding_flags entry
2025-04-16 5:48 [PATCH 1/2] f2fs: sysfs: add encoding_flags entry Chao Yu
2025-04-16 5:48 ` [PATCH 2/2] f2fs: sysfs: export linear_lookup in features directory Chao Yu
@ 2025-04-28 22:40 ` patchwork-bot+f2fs
2025-06-24 10:00 ` [STABLE 5.15+] " Lee Jones
2 siblings, 0 replies; 8+ messages in thread
From: patchwork-bot+f2fs @ 2025-04-28 22:40 UTC (permalink / raw)
To: Chao Yu; +Cc: jaegeuk, linux-kernel, linux-f2fs-devel
Hello:
This series was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:
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.
>
> =========================== ==========
> 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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [STABLE 5.15+] f2fs: sysfs: add encoding_flags entry
2025-04-16 5:48 [PATCH 1/2] f2fs: sysfs: add encoding_flags entry Chao Yu
2025-04-16 5:48 ` [PATCH 2/2] f2fs: sysfs: export linear_lookup in features directory Chao Yu
2025-04-28 22:40 ` [f2fs-dev] [PATCH 1/2] f2fs: sysfs: add encoding_flags entry patchwork-bot+f2fs
@ 2025-06-24 10:00 ` Lee Jones
2025-07-02 10:20 ` Greg Kroah-Hartman
2 siblings, 1 reply; 8+ messages in thread
From: Lee Jones @ 2025-06-24 10:00 UTC (permalink / raw)
To: Chao Yu, stable, Greg Kroah-Hartman, Sasha Levin
Cc: jaegeuk, linux-f2fs-devel, linux-kernel
On Wed, 16 Apr 2025, Chao Yu 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.
>
> =========================== ==========
> 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
>
> Signed-off-by: Chao Yu <chao@kernel.org>
> ---
> 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
> diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs
> b/Documentation/ABI/testing/sysfs-fs-f2fs index
> 59adb7dc6f9e..0dbe6813b709 100644 ---
> 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 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"
> <chao@kernel.org> +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 +
> =========================== ========== diff --git
> a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 3a3485622691..cf98c5cbb98a
> 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -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), -- 2.49.0
>
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [STABLE 5.15+] f2fs: sysfs: add encoding_flags entry
2025-06-24 10:00 ` [STABLE 5.15+] " Lee Jones
@ 2025-07-02 10:20 ` Greg Kroah-Hartman
2025-07-23 8:26 ` Lee Jones
0 siblings, 1 reply; 8+ messages in thread
From: Greg Kroah-Hartman @ 2025-07-02 10:20 UTC (permalink / raw)
To: Lee Jones
Cc: Chao Yu, stable, Sasha Levin, jaegeuk, linux-f2fs-devel,
linux-kernel
On Tue, Jun 24, 2025 at 11:00:39AM +0100, Lee Jones wrote:
> On Wed, 16 Apr 2025, Chao Yu 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.
> >
> > =========================== ==========
> > 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
> >
> > Signed-off-by: Chao Yu <chao@kernel.org>
> > ---
> > 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
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [STABLE 5.15+] f2fs: sysfs: add encoding_flags entry
2025-07-02 10:20 ` Greg Kroah-Hartman
@ 2025-07-23 8:26 ` Lee Jones
2025-07-23 9:41 ` Greg Kroah-Hartman
0 siblings, 1 reply; 8+ messages in thread
From: Lee Jones @ 2025-07-23 8:26 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Chao Yu, stable, Sasha Levin, jaegeuk, linux-f2fs-devel,
linux-kernel
On Wed, 02 Jul 2025, Greg Kroah-Hartman wrote:
> On Tue, Jun 24, 2025 at 11:00:39AM +0100, Lee Jones wrote:
> > On Wed, 16 Apr 2025, Chao Yu 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.
> > >
> > > =========================== ==========
> > > 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
> > >
> > > Signed-off-by: Chao Yu <chao@kernel.org>
> > > ---
> > > 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
>
> Great, 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.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [STABLE 5.15+] f2fs: sysfs: add encoding_flags entry
2025-07-23 8:26 ` Lee Jones
@ 2025-07-23 9:41 ` Greg Kroah-Hartman
2025-07-24 10:18 ` Lee Jones
0 siblings, 1 reply; 8+ messages in thread
From: Greg Kroah-Hartman @ 2025-07-23 9:41 UTC (permalink / raw)
To: Lee Jones
Cc: Chao Yu, stable, Sasha Levin, jaegeuk, linux-f2fs-devel,
linux-kernel
On Wed, Jul 23, 2025 at 09:26:39AM +0100, Lee Jones wrote:
> On Wed, 02 Jul 2025, Greg Kroah-Hartman wrote:
>
> > On Tue, Jun 24, 2025 at 11:00:39AM +0100, Lee Jones wrote:
> > > On Wed, 16 Apr 2025, Chao Yu 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.
> > > >
> > > > =========================== ==========
> > > > 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
> > > >
> > > > Signed-off-by: Chao Yu <chao@kernel.org>
> > > > ---
> > > > 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
> >
> > Great, 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.
There are conflicts, it doesn't apply to 6.1.y or 5.15.y :(
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [STABLE 5.15+] f2fs: sysfs: add encoding_flags entry
2025-07-23 9:41 ` Greg Kroah-Hartman
@ 2025-07-24 10:18 ` Lee Jones
0 siblings, 0 replies; 8+ messages in thread
From: Lee Jones @ 2025-07-24 10:18 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Chao Yu, stable, Sasha Levin, jaegeuk, linux-f2fs-devel,
linux-kernel
On Wed, 23 Jul 2025, Greg Kroah-Hartman wrote:
> On Wed, Jul 23, 2025 at 09:26:39AM +0100, Lee Jones wrote:
> > On Wed, 02 Jul 2025, Greg Kroah-Hartman wrote:
> >
> > > On Tue, Jun 24, 2025 at 11:00:39AM +0100, Lee Jones wrote:
> > > > On Wed, 16 Apr 2025, Chao Yu 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.
> > > > >
> > > > > =========================== ==========
> > > > > 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
> > > > >
> > > > > Signed-off-by: Chao Yu <chao@kernel.org>
> > > > > ---
> > > > > 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
> > >
> > > Great, 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.
>
> There are conflicts, it doesn't apply to 6.1.y or 5.15.y :(
Okay, thanks for trying. Leave it with me.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-07-24 10:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 5:48 [PATCH 1/2] f2fs: sysfs: add encoding_flags entry Chao Yu
2025-04-16 5:48 ` [PATCH 2/2] f2fs: sysfs: export linear_lookup in features directory Chao Yu
2025-04-28 22:40 ` [f2fs-dev] [PATCH 1/2] f2fs: sysfs: add encoding_flags entry patchwork-bot+f2fs
2025-06-24 10:00 ` [STABLE 5.15+] " Lee Jones
2025-07-02 10:20 ` Greg Kroah-Hartman
2025-07-23 8:26 ` Lee Jones
2025-07-23 9:41 ` Greg Kroah-Hartman
2025-07-24 10:18 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).