1
0
Fork 0

gunzip.c: use block layer for writes

Call blk_dwrite to ensure that the block cache is notified
if enabled and remove build breakage when CONFIG_BLK is enabled.

Signed-off-by: Eric Nelson <eric@nelint.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
utp
Eric Nelson 2016-04-11 15:21:37 -07:00 committed by Tom Rini
parent cee752fa8d
commit 6a3bf3e571
1 changed files with 2 additions and 3 deletions

View File

@ -232,9 +232,8 @@ int gzwrite(unsigned char *src, int len,
gzwrite_progress(iteration++,
totalfilled,
szexpected);
blocks_written = dev->block_write(dev, outblock,
writeblocks,
writebuf);
blocks_written = blk_dwrite(dev, outblock,
writeblocks, writebuf);
outblock += blocks_written;
if (ctrlc()) {
puts("abort\n");