Re: [PATCH] f2fs: fix overflow when calculating utilization on 32-bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/2/25, Changman Lee <cm224.lee@xxxxxxxxxxx>:
> Use div_u64 to fix overflow when calculating utilization.
> *long int* is 4-bytes on 32-bit so (user blocks * 100) might be
> overflow if disk size is over e.g. 512GB.
>
> Signed-off-by: Changman Lee <cm224.lee@xxxxxxxxxxx>
Looks good to me.
Reviewed-by: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux