Re: [f2fs-dev] [PATCH] f2fs: change compr_blocks of superblock info to 64bit

From: Chao Yu
Date: Sun Aug 30 2020 - 22:49:06 EST


On 2020/8/31 10:09, Daeho Jeong wrote:
From: Daeho Jeong <daehojeong@xxxxxxxxxx>

Current compr_blocks of superblock info is not 64bit value. We are
accumulating each i_compr_blocks count of inodes to this value and
those are 64bit values. So, need to change this to 64bit value.

It's not a big deal, as f2fs use 32bits to index block device's address space,
so there is at most 1 << 32 blocks in f2fs, we can not save more blocks than
the number...

If it overflows 32bits variable's space, it must be a bug.


Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,