aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurii Zubrytskyi <zyy@google.com>2020-04-03 20:39:33 -0700
committerPaul Lawrence <paullawrence@google.com>2020-04-07 13:30:49 +0000
commitede7d178ca4b48ac730198ce20f8cef82a8401a7 (patch)
tree78827af04c577504820cc8581344d37e49c34e55
parentd8e6ba401baa079338c5a1e966f1b13c12e4fcb7 (diff)
ANDROID: Incremental fs: Use 64-bit int for file_size when writing hash blocksASB-2020-04-05_mainline
Bug: 153210803 Test: manual Change-Id: Iafc888dbe906cd37e5b28dc2814f52aace175c0f Signed-off-by: Yurii Zubrytskyi <zyy@google.com>
-rw-r--r--fs/incfs/format.c3
-rw-r--r--fs/incfs/format.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/fs/incfs/format.c b/fs/incfs/format.c
index 1a7c4646a291..ff3a2219fc24 100644
--- a/fs/incfs/format.c
+++ b/fs/incfs/format.c
@@ -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;
diff --git a/fs/incfs/format.h b/fs/incfs/format.h
index f1095dc3c3dd..d57a7b479721 100644
--- a/fs/incfs/format.h
+++ b/fs/incfs/format.h
@@ -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);