Force 'page_in_evict_list' to be always inlined

This commit is contained in:
Cacodemon345
2023-06-11 11:41:49 +06:00
committed by GitHub
parent cf8a2aa50a
commit 5e40840d16

View File

@@ -229,7 +229,7 @@ typedef struct page_t {
extern uint32_t purgable_page_list_head; extern uint32_t purgable_page_list_head;
static inline int static inline int
page_in_evict_list(page_t *p) page_in_evict_list(page_t *p) __attribute__((always_inline))
{ {
return (p->evict_prev != EVICT_NOT_IN_LIST); return (p->evict_prev != EVICT_NOT_IN_LIST);
} }