]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: add carve_out sysfs node
authorDaeho Jeong <daehojeong@google.com>
Tue, 11 Mar 2025 18:29:31 +0000 (11:29 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 13 Mar 2025 18:15:59 +0000 (18:15 +0000)
commitd7b549def0eb42a950eebd3bd5343f5c8088c305
treea2d5786404c7189ccbdf7ef366245573339af805
parentf7f8932ca6bb22494ef6db671633ad3b4d982271
f2fs: add carve_out sysfs node

For several zoned storage devices, vendors will provide extra space
which was used for device level GC than specs and F2FS can use this
space for filesystem level GC. To do that, we can reserve the space
using 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.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/f2fs/sysfs.c