| 804 | } |
| 805 | |
| 806 | void TFileHandle::EvictCache(i64 offset, i64 length) const noexcept { |
| 807 | #if HAVE_POSIX_FADVISE |
| 808 | /* |
| 809 | * This tries to evicts only unmaped, clean, complete pages. |
| 810 | */ |
| 811 | ::posix_fadvise(Fd_, offset, length, POSIX_FADV_DONTNEED); |
| 812 | #else |
| 813 | Y_UNUSED(offset); |
| 814 | Y_UNUSED(length); |
| 815 | #endif |
| 816 | } |
| 817 | |
| 818 | bool TFileHandle::FlushCache(i64 offset, i64 length, bool wait) noexcept { |
| 819 | #if HAVE_SYNC_FILE_RANGE |