30 #ifndef UNIV_HOTBACKUP
52 #define BUF_LRU_OLD_MIN_LEN 512
68 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
73 buf_LRU_insert_zip_clean(
96 __attribute__((nonnull));
108 __attribute__((nonnull,warn_unused_result));
149 __attribute__((nonnull,warn_unused_result));
232 __attribute__((nonnull));
234 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
240 buf_LRU_validate(
void);
243 #if defined UNIV_DEBUG_PRINT || defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
254 #define BUF_LRU_OLD_RATIO_DIV 1024
258 #define BUF_LRU_OLD_RATIO_MAX BUF_LRU_OLD_RATIO_DIV
264 #define BUF_LRU_OLD_RATIO_MIN 51
266 #if BUF_LRU_OLD_RATIO_MIN >= BUF_LRU_OLD_RATIO_MAX
267 # error "BUF_LRU_OLD_RATIO_MIN >= BUF_LRU_OLD_RATIO_MAX"
269 #if BUF_LRU_OLD_RATIO_MAX > BUF_LRU_OLD_RATIO_DIV
270 # error "BUF_LRU_OLD_RATIO_MAX > BUF_LRU_OLD_RATIO_DIV"
299 #define buf_LRU_stat_inc_io() buf_LRU_stat_cur.io++
302 #define buf_LRU_stat_inc_unzip() buf_LRU_stat_cur.unzip++
305 #include "buf0lru.ic"