]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: alloc new section if curseg is not the first seg in its zone
authorSheng Yong <shengyong@oppo.com>
Thu, 30 May 2024 10:01:58 +0000 (18:01 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Jun 2024 15:46:02 +0000 (15:46 +0000)
commit76da333f4b935af65c9465277032a1e24405375c
treeafae4dce0fbb4afab793359fa21c54bd86a3711d
parentcc260b66c4cd21a370b39f73c9034a420baf8f79
f2fs: alloc new section if curseg is not the first seg in its zone

If curseg is not the first segment in its zone, the zone is not empty.
A new section should be allocated and avoid resetting the old zone.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Sheng Yong <shengyong@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c