summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-25 14:40:28 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-25 14:48:49 +0200
commit65aee8f3f32f8f936aa272301ad69fc38c0f258c (patch)
treed3e358adc1b625673060b23c79d3dc3a0a358e2d
parentc7bfc370ae8974302cf1e316b3e03d0e6e960e0c (diff)
json: move list_head at the tip of struct og_cache_image
this is accessed on list iterations in first place, improve cache locality.
-rw-r--r--src/json.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.h b/src/json.h
index ff5c8ad..cc08d9d 100644
--- a/src/json.h
+++ b/src/json.h
@@ -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)