#include <stdlib.h>
-#define CACHE_PREFETCH 1024
+#define CACHE_PREFETCH IO_BLOCK_SIZE
int mail_cache_get_record(struct mail_cache *cache, uint32_t offset,
const struct mail_cache_record **rec_r)
{
struct mail_index *index = map->index;
const struct mail_index_header *hdr;
- unsigned char read_buf[4096];
+ unsigned char read_buf[IO_BLOCK_SIZE];
const void *buf;
void *data = NULL;
ssize_t ret;
#include "mail-index-modseq.h"
#include "mail-transaction-log-private.h"
-#define LOG_PREFETCH 1024
+#define LOG_PREFETCH IO_BLOCK_SIZE
#define MEMORY_LOG_NAME "(in-memory transaction log file)"
static int