From: Felix Janda Date: Tue, 1 Nov 2016 01:38:36 +0000 (+1100) Subject: xfs_io: replace posix_fadvise64 by equivalent posix_fadvise X-Git-Tag: v4.9.0-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8edba5a51671c585cd09499a4e691872715d932;p=thirdparty%2Fxfsprogs-dev.git xfs_io: replace posix_fadvise64 by equivalent posix_fadvise also fixes a compile failure on FreeBSD Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/io/fadvise.c b/io/fadvise.c index d59d1ff28..46174f346 100644 --- a/io/fadvise.c +++ b/io/fadvise.c @@ -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; }