mbox series

[0/2] e2fprogs: block zero/discard cleanups

Message ID 152399273813.4654.4884342501339028766.stgit@magnolia
Headers show
Series e2fprogs: block zero/discard cleanups | expand

Message

Darrick Wong April 17, 2018, 7:18 p.m. UTC
Hi all,

Here's a couple of patches that make fallocate's ZERO_RANGE the
preferred implementation of unix_zeroout, and rearrange unix_zeroout and
unix_discard to try fallocate first always.  fallocate for block devices
has existed in the kernel for a few years now, and satisfies libext2fs'
requirement that reads following a zero/discard must return zeroes.  The
existing fallbacks for both functions are preserved.

Questions?  Comments?  This series targets e2fsprogs 1.45.

--D