diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-09-20 21:49:52 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@aol.com> | 2019-10-07 09:30:35 +0800 |
commit | 6a61ce1450c542d66fde1cdfc34fa39223beb710 (patch) | |
tree | 684407ae71a50adf1709aff44ce92c0681ca21d2 /lib/compress.c | |
parent | b0ca535297b6dfb1026fd1618a67571ccbcbe8e4 (diff) |
erofs-utils: complete extended inode support
There is no requirement to use extended inode (v2)
for Android, but it's obviously useful for wider
use cases.
extended inode was partially supported by obsoleted_mkfs,
complete for new erofs-utils as well.
Reviewed-by: Li Guifu <blucerlee@gmail.com>
Tested-by: Li Guifu <blucerlee@gmail.com>
Link: https://lore.kernel.org/r/20191004204630.22696-2-hsiangkao@aol.com
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Diffstat (limited to 'lib/compress.c')
-rw-r--r-- | lib/compress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.c b/lib/compress.c index 7935fce..7f65e5e 100644 --- a/lib/compress.c +++ b/lib/compress.c @@ -423,8 +423,8 @@ int erofs_write_compressed_file(struct erofs_inode *inode) remaining = inode->i_size; while (remaining) { - const uint readcount = min_t(uint, remaining, - sizeof(ctx.queue) - ctx.tail); + const u64 readcount = min_t(u64, remaining, + sizeof(ctx.queue) - ctx.tail); ret = read(fd, ctx.queue + ctx.tail, readcount); if (ret != readcount) { |