Whamcloud - gitweb
libext2fs: revert "try to always use PUNCH_HOLE for unix_discard"
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 14 Feb 2019 21:02:33 +0000 (16:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 14 Feb 2019 21:02:33 +0000 (16:02 -0500)
commitab589110583794871b7a22241df669d0b65483d7
tree6bd44e37ddc797fd06b44cbc5c5ac58316269f8a
parenta935b93dcac8473864587c2e305c2d19b8fcd591
libext2fs: revert "try to always use PUNCH_HOLE for unix_discard"

Revert bcca9876a3428c10417c660b78933e6e70e8a5f5, because
fallocate(PUNCH_HOLE) on block devices was changed to use zeroout
instead of discard shortly after block device fallocate was merged.
zeroout isn't necessarily a "drop storage" operation like discard is,
so we prefer to use that on block devices.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/unix_io.c