f2fs: add a method for calculating the remaining blocks in the current segment in...
authoryohan.joung <yohan.joung@sk.com>
Mon, 12 May 2025 07:36:09 +0000 (16:36 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 28 May 2025 15:58:30 +0000 (15:58 +0000)
commit249ad438e1d98b30b1ad9283bb4c4a37c4858294
tree99e7fe364c6c8ad6195a6a938866211582c6269f
parent54ca9be0bc589a0e45959ba73c76cf3f65110c63
f2fs: add a method for calculating the remaining blocks in the current segment in LFS mode.

In LFS mode, the previous segment cannot use invalid blocks,
so the remaining blocks from the next_blkoff of the current segment
to the end of the section are calculated.

Signed-off-by: yohan.joung <yohan.joung@sk.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h