Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

f2fs: add a sysfs entry to show max open zones

This patch adds a sysfs entry showing the max zones that F2FS can write
concurrently.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Yongpeng Yang and committed by
Jaegeuk Kim
89732017 581251e0

+8
+6
Documentation/ABI/testing/sysfs-fs-f2fs
··· 643 643 Description: Shows the number of unusable blocks in a section which was defined by 644 644 the zone capacity reported by underlying zoned device. 645 645 646 + What: /sys/fs/f2fs/<disk>/max_open_zones 647 + Date: November 2025 648 + Contact: "Yongpeng Yang" <yangyongpeng@xiaomi.com> 649 + Description: Shows the max number of zones that F2FS can write concurrently when a zoned 650 + device is mounted. 651 + 646 652 What: /sys/fs/f2fs/<disk>/current_atomic_write 647 653 Date: July 2022 648 654 Contact: "Daeho Jeong" <daehojeong@google.com>
+2
fs/f2fs/sysfs.c
··· 1213 1213 F2FS_SBI_GENERAL_RW_ATTR(max_read_extent_count); 1214 1214 #ifdef CONFIG_BLK_DEV_ZONED 1215 1215 F2FS_SBI_GENERAL_RO_ATTR(unusable_blocks_per_sec); 1216 + F2FS_SBI_GENERAL_RO_ATTR(max_open_zones); 1216 1217 F2FS_SBI_GENERAL_RW_ATTR(blkzone_alloc_policy); 1217 1218 #endif 1218 1219 F2FS_SBI_GENERAL_RW_ATTR(carve_out); ··· 1389 1388 #endif 1390 1389 #ifdef CONFIG_BLK_DEV_ZONED 1391 1390 ATTR_LIST(unusable_blocks_per_sec), 1391 + ATTR_LIST(max_open_zones), 1392 1392 ATTR_LIST(blkzone_alloc_policy), 1393 1393 #endif 1394 1394 #ifdef CONFIG_F2FS_FS_COMPRESSION