Commit efe568ee authored by Daeho Jeong's avatar Daeho Jeong Committed by Treehugger Robot
Browse files

FROMGIT: 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: default avatarDaeho Jeong <daehojeong@google.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>

Bug: 394342775
(cherry picked from commit d7b549de
 https: //git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Link: https://lore.kernel.org/linux-f2fs-devel/20250311182931.1043290-1-daeho43@gmail.com/

Change-Id: Ibff082b5575b98be72d22fbd0297fe7cca034ceb
parent 7070cca8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment