OSDN Git Service

Promote free bytes calculation to 64 bits
authorOleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Thu, 1 Oct 2015 10:44:46 +0000 (12:44 +0200)
committerJeff Sharkey <jsharkey@android.com>
Wed, 21 Oct 2015 23:01:29 +0000 (16:01 -0700)
commit2403b4d0561c756ed5102aaf6048a80c9993f6f8
tree08a7bf090d2c78815b5a01e0541618a287e088ea
parent89f74fbf2529d708534c041d2b711af0f1feff9f
Promote free bytes calculation to 64 bits

The expression otherwise overflows for large devices.
It's fsblkcnt_t -> unsigned long, which is 32 bit on ARMv7.

Bug: 25162062
Change-Id: I46c5e00558b7dbd6abd50fae4727396079044df2
Utils.cpp