]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: add carve_out sysfs node
authorDaeho Jeong <daehojeong@google.com>
Tue, 11 Mar 2025 18:29:31 +0000 (11:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:15 +0000 (13:55 +0100)
commit7cc6b80df66f69bff1acf5cbcba5aaf639fc97c8
treea7c17f905967a3f1c61bee7de3df10490ef62c74
parent65e42a7084d1a19d94ca4e1a620dabde2e0a76ae
f2fs: add carve_out sysfs node

[ Upstream commit d7b549def0eb42a950eebd3bd5343f5c8088c305 ]

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>
Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/f2fs/sysfs.c