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
parent
cee752fa8d
commit
6a3bf3e571
|
@ -232,9 +232,8 @@ int gzwrite(unsigned char *src, int len,
|
||||||
gzwrite_progress(iteration++,
|
gzwrite_progress(iteration++,
|
||||||
totalfilled,
|
totalfilled,
|
||||||
szexpected);
|
szexpected);
|
||||||
blocks_written = dev->block_write(dev, outblock,
|
blocks_written = blk_dwrite(dev, outblock,
|
||||||
writeblocks,
|
writeblocks, writebuf);
|
||||||
writebuf);
|
|
||||||
outblock += blocks_written;
|
outblock += blocks_written;
|
||||||
if (ctrlc()) {
|
if (ctrlc()) {
|
||||||
puts("abort\n");
|
puts("abort\n");
|
||||||
|
|
Loading…
Reference in New Issue