]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
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)
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

index ffe7439ccaa84ff319f55dde0ae6676ec0b92ec2..6d387c3142bd07f622e0d5f26a13019f1aaa6e81 100644 (file)
--- a/io/seek.c
+++ b/io/seek.c
@@ -35,11 +35,6 @@ seek_help(void)
 "\n"));
 }
 
-#ifndef HAVE_SEEK_DATA
-#define        SEEK_DATA       3       /* seek to the next data */
-#define        SEEK_HOLE       4       /* seek to the next hole */
-#endif
-
 /* values for flag variable */
 #define        SEEK_DFLAG      (1 << 0)
 #define        SEEK_HFLAG      (1 << 1)