]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: replace posix_fadvise64 by equivalent posix_fadvise
authorFelix Janda <felix.janda@posteo.de>
Tue, 1 Nov 2016 01:38:36 +0000 (12:38 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 1 Nov 2016 01:38:36 +0000 (12:38 +1100)
also fixes a compile failure on FreeBSD

Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/fadvise.c

index d59d1ff28e5bd4b64b084664cf871fc1936852e4..46174f34680efe102c55267ab3016a9e36cba788 100644 (file)
@@ -103,7 +103,7 @@ fadvise_f(
                return command_usage(&fadvise_cmd);
        }
 
-       if (posix_fadvise64(file->fd, offset, length, advise) < 0) {
+       if (posix_fadvise(file->fd, offset, length, advise) < 0) {
                perror("fadvise");
                return 0;
        }