Whamcloud - gitweb
libext2fs/e2fsck: refactor everyone who writes zero blocks to disk
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 13 Oct 2014 08:31:17 +0000 (04:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 13 Oct 2014 08:31:17 +0000 (04:31 -0400)
commit08c8e319e3e11e30eb8c0b65809d434e807a4456
treeb3c157db214b25ffc042e9f62ad597d72f4d58bf
parent6a0f113535cdc4937b60f763667a545183b98c85
libext2fs/e2fsck: refactor everyone who writes zero blocks to disk

Convert all call sites that write zero blocks to disk to use
ext2fs_zero_blocks2() since it can use Linux's zero out feature to do
the writes more quickly.  Reclaim the zero buffer at freefs time and
make the write-zeroes fallback use a larger buffer.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass3.c
e2fsck/util.c
lib/ext2fs/alloc.c
lib/ext2fs/expanddir.c
lib/ext2fs/freefs.c
lib/ext2fs/mkjournal.c
misc/mke2fs.c
resize/resize2fs.c