]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
logwrites: only use BLKDISCARD if we know discard zeroes data
authorDarrick J. Wong <djwong@kernel.org>
Fri, 22 Nov 2024 16:28:04 +0000 (08:28 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 23 Jan 2025 21:19:53 +0000 (13:19 -0800)
commit045649a2755e2a809559e8105ef7b39833886014
treecb6870f70822df099e0fde0bcb1f7f7e09b53d8c
parent9bd178a6ddf2bced61af7f6c5651c1ee3c259fb1
logwrites: only use BLKDISCARD if we know discard zeroes data

Building off the checks established in the previous patch, only enable
the use of BLKDISCARD if we know that the logwrites device guarantees
that reads after a discard return zeroes.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
common/dmlogwrites
src/log-writes/replay-log.c