json: move list_head at the tip of struct og_cache_image

this is accessed on list iterations in first place, improve cache locality.
master
OpenGnSys Support Team 2024-09-25 14:40:28 +02:00
parent c7bfc370ae
commit 65aee8f3f3
1 changed files with 1 additions and 1 deletions

View File

@ -125,10 +125,10 @@ int og_json_parse_procedure(json_t *element, struct og_procedure *proc);
#define OG_PARAM_IMG_CHECKSUM (1UL << 2)
struct og_cache_image {
struct list_head list;
const char *name;
uint64_t size;
const char *checksum;
struct list_head list;
};
#define OG_PARAM_CACHE_USED_SIZE (1UL << 0)