]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
io: don't redefine SEEK_DATA and SEEK_HOLE
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Feb 2024 06:54:04 +0000 (07:54 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 13 Mar 2024 07:48:37 +0000 (08:48 +0100)
commitf367d5629bfaf36231486bdff9eda2e5698416a4
tree8745cd2391a038b1b6a6aa86b212ed5bdd8ebca4
parent0fa9dcb61b4ff93c3fb8334541ff04e302631052
io: don't redefine SEEK_DATA and SEEK_HOLE

HAVE_SEEK_DATA is never defined, so the code in xfs_io just
unconditionally redefines SEEK_DATA and SEEK_HOLE.  Switch to the
system version instead, which has been around since Linux 3.1 and
glibc of similar vintage.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
io/seek.c