ANDROID: Incremental fs: Use 64-bit int for file_size when writing hash blocks

Bug: 153210803
Test: manual
Change-Id: Iafc888dbe906cd37e5b28dc2814f52aace175c0f
Signed-off-by: Yurii Zubrytskyi <zyy@google.com>
This commit is contained in:
Yurii Zubrytskyi 2020-04-03 20:39:33 -07:00 committed by Paul Lawrence
parent d8e6ba401b
commit ede7d178ca
2 changed files with 4 additions and 2 deletions

View File

@ -450,7 +450,8 @@ int incfs_write_hash_block_to_backing_file(struct backing_file_context *bfc,
struct mem_range block,
int block_index,
loff_t hash_area_off,
loff_t bm_base_off, int file_size)
loff_t bm_base_off,
loff_t file_size)
{
struct incfs_blockmap_entry bm_entry = {};
int result;

View File

@ -303,7 +303,8 @@ int incfs_write_hash_block_to_backing_file(struct backing_file_context *bfc,
struct mem_range block,
int block_index,
loff_t hash_area_off,
loff_t bm_base_off, int file_size);
loff_t bm_base_off,
loff_t file_size);
int incfs_write_file_attr_to_backing_file(struct backing_file_context *bfc,
struct mem_range value, struct incfs_file_attr *attr);