f2fs: fix wrong segment count
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Feb 2023 17:41:33 +0000 (09:41 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 14 Feb 2023 18:07:59 +0000 (10:07 -0800)
commit7e986855fe13de2c8290c1102292d8e5f29dd769
tree55c750004ed14f15932c365fc209b43bf70f19ba
parentdda7d77bcd424ce5da80dd5a7ec92ead00279c02
f2fs: fix wrong segment count

MAIN_SEGS is for data area, while TOTAL_SEGS includes data and metadata.

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