From: Jens Axboe Date: Sat, 13 Mar 2010 10:29:47 +0000 (+0100) Subject: Add __weak sync_file_range() X-Git-Tag: fio-1.38~17 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=a54cf03496c0e181974a63c2b60b2dc522e4b8a9;hp=ae2ddba4e74f06b5ec986d1c3387cd14e69f8146 Add __weak sync_file_range() Signed-off-by: Jens Axboe --- diff --git a/helpers.c b/helpers.c index 9b1f3e90..779f9fbe 100644 --- a/helpers.c +++ b/helpers.c @@ -29,3 +29,9 @@ int __weak clock_gettime(clockid_t clk_id, struct timespec *ts) return ret; } + +int __weak sync_file_range(int fd, off64_t offset, off64_t nbytes, + unsigned int flags) +{ + return 0; +} diff --git a/helpers.h b/helpers.h index 4f8cc0ce..8307c43a 100644 --- a/helpers.h +++ b/helpers.h @@ -9,5 +9,7 @@ extern int __weak posix_memalign(void **ptr, size_t align, size_t size); extern int __weak posix_fallocate(int fd, off_t offset, off_t len); extern int __weak inet_aton(const char *cp, struct in_addr *inp); extern int __weak clock_gettime(clockid_t clk_id, struct timespec *ts); +extern int __weak sync_file_range(int fd, off64_t offset, off64_t nbytes, + unsigned int flags); #endif