mirror of https://github.com/borgbackup/borg.git
chunker - cast from size_t to off_t can now be removed
Sorry, this should really have been part of the previous commit - it's why I noticed a problem.
This commit is contained in:
parent
ce3e67cb96
commit
59a44296e4
|
@ -163,7 +163,7 @@ chunker_fill(Chunker *c)
|
||||||
// size limit) kick out data from the cache that might be still useful
|
// size limit) kick out data from the cache that might be still useful
|
||||||
// for the OS or other processes.
|
// for the OS or other processes.
|
||||||
if (length > 0) {
|
if (length > 0) {
|
||||||
posix_fadvise(c->fh, (off_t) offset, (off_t) length, POSIX_FADV_DONTNEED);
|
posix_fadvise(c->fh, offset, length, POSIX_FADV_DONTNEED);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue