fellow_cache: refactor struct fellow_cache_seg

parent 8a6ab47f
......@@ -351,7 +351,7 @@ SEGLIST_FIT_FUNC(disk)
struct fellow_cache_obj;
struct fellow_cache_seg {
uint16_t magic;
#define FELLOW_CACHE_SEG_MAGIC 0x6278
#define FELLOW_CACHE_SEG_MAGIC 0x6279
enum fcos_state state;
unsigned fcs_onlru:1;
unsigned fco_infdb:1;
......@@ -373,8 +373,9 @@ struct fellow_cache_seg {
VTAILQ_ENTRY(fellow_cache_seg) lru_list;
struct fellow_cache_obj *fco;
struct fellow_disk_seg *disk_seg;
struct buddy_ptr_extent alloc;
struct fellow_disk_seg *disk_seg;
union {
size_t fcs_len; // FCS_* used size
struct fellow_disk_obj *fco_fdo; // FCO_* ptr to fdo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment