btrfs-progs: use fixed size buffer in zero_output_file
authorDavid Sterba <dsterba@suse.com>
Fri, 6 Nov 2015 17:10:29 +0000 (18:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 13 Nov 2015 17:24:34 +0000 (18:24 +0100)
commit927747bc828fed5a1649e87b7d2b5cacdf00e6e5
tree13d6beebd7da3fd11f0b3c3fb1e08b5b69f7a05c
parent89b40ab5bbd8f2aff8c0a595a4d25faade0016d9
btrfs-progs: use fixed size buffer in zero_output_file

Rewrite the loop so we don't need to allocate sectorsize and write in 4k
steps instead. We know that sectorsize is divisible by 4096.

Signed-off-by: David Sterba <dsterba@suse.com>
mkfs.c