Message ID | 94800ca4e791ebca9ad6503afba31ebdfad672f7.1471107858.git.felix.janda@posteo.de (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Sat, Aug 13, 2016 at 06:03:16PM +0200, Felix Janda wrote: > also fixes a compile failure on FreeBSD > > Signed-off-by: Felix Janda <felix.janda@posteo.de> Looks fine, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/io/fadvise.c b/io/fadvise.c index d59d1ff..46174f3 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; }
also fixes a compile failure on FreeBSD Signed-off-by: Felix Janda <felix.janda@posteo.de> --- io/fadvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)