修改bufferdesc大小,提升性能

This commit is contained in:
cc_db_dev
2023-02-20 16:40:35 +08:00
parent f427d6a2ee
commit e88cef70c1
23 changed files with 182 additions and 163 deletions

View File

@ -322,7 +322,7 @@ inline bool dw_buf_valid_aio_finished(BufferDesc *buf_desc, uint32 buf_state)
return true;
}
return ((buf_state & BM_VALID) && ((buf_state & BM_DIRTY) || buf_desc->aio_in_progress));
return ((buf_state & BM_VALID) && ((buf_state & BM_DIRTY) || buf_desc->extra->aio_in_progress));
}
extern bool free_space_enough(int buf_id);