]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: use FALLOC_FL_ZERO_RANGE in libxfs_device_zero
authorEric Sandeen <sandeen@redhat.com>
Thu, 27 Feb 2020 20:05:48 +0000 (15:05 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2020 20:05:48 +0000 (15:05 -0500)
commit9d6023a856a1c4f84415dff59b0d5459cc8768db
treeb7763d9c5e83b96c19ade999527a7eb1d57691c0
parent306b450b005585a19c65b59d07a3e2af0abfa6fd
libxfs: use FALLOC_FL_ZERO_RANGE in libxfs_device_zero

I had a request from someone who cared about mkfs speed over
a slower network block device to look into using faster zeroing
methods, particularly for the log, during mkfs.

Using FALLOC_FL_ZERO_RANGE is faster in this case than writing
a bunch of zeros across a wire.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/builddefs.in
include/linux.h
libxfs/rdwr.c