diff options
Diffstat (limited to 'src/readahead-common.c')
-rw-r--r-- | src/readahead-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/readahead-common.c b/src/readahead-common.c index 88441dbe1c..a1016a3ede 100644 --- a/src/readahead-common.c +++ b/src/readahead-common.c @@ -29,7 +29,7 @@ #include "readahead-common.h" #include "util.h" -int file_verify(int fd, const char *fn, struct stat *st) { +int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st) { assert(fd >= 0); assert(fn); assert(st); @@ -44,7 +44,7 @@ int file_verify(int fd, const char *fn, struct stat *st) { return 0; } - if (st->st_size <= 0 || st->st_size > READAHEAD_FILE_SIZE_MAX) { + if (st->st_size <= 0 || st->st_size > file_size_max) { log_debug("Not preloading file %s with size out of bounds %zi", fn, st->st_size); return 0; } |