Align disk buffer to 16 for perf reasons

This commit is contained in:
mintsuki 2020-05-01 02:30:03 +02:00
parent 2ec27cbeee
commit e3dbdad6c8
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -28,7 +28,7 @@ static int cache_block(int drive, uint64_t block) {
return 0; return 0;
if (!cache) if (!cache)
cache = balloc(BLOCK_SIZE); cache = balloc_aligned(BLOCK_SIZE, 16);
dap.segment = rm_seg(cache); dap.segment = rm_seg(cache);
dap.offset = rm_off(cache); dap.offset = rm_off(cache);