Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
e935f194
Unverified
Commit
e935f194
authored
Jan 22, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: Comment on struct fellow_cache_obj
parent
3759055d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
fellow_cache.c
src/fellow_cache.c
+9
-2
No files found.
src/fellow_cache.c
View file @
e935f194
...
@@ -708,10 +708,11 @@ enum seglistload_state {
...
@@ -708,10 +708,11 @@ enum seglistload_state {
struct
fellow_cache_obj
{
struct
fellow_cache_obj
{
unsigned
magic
;
unsigned
magic
;
#define FELLOW_CACHE_OBJ_MAGIC 0x837d555f
#define FELLOW_CACHE_OBJ_MAGIC 0x837d555f
// protected by fco mtx (in fcs)
enum
fcol_state
logstate
;
enum
fcol_state
logstate
;
enum
seglistload_state
seglstate
;
enum
seglistload_state
seglstate
;
// ^^^ protected by mtx - do not add <64bit values
struct
fellow_cache_lru
*
lru
;
struct
fellow_cache_lru
*
lru
;
uint64_t
ntouched
;
uint64_t
ntouched
;
...
@@ -723,7 +724,7 @@ struct fellow_cache_obj {
...
@@ -723,7 +724,7 @@ struct fellow_cache_obj {
struct
objcore
*
oc
;
struct
objcore
*
oc
;
fellow_disk_block
fdb
;
fellow_disk_block
fdb
;
// *1) below
VRBT_ENTRY
(
fellow_cache_obj
)
fdb_entry
;
VRBT_ENTRY
(
fellow_cache_obj
)
fdb_entry
;
struct
fellow_cache_seg
fdo_fcs
;
struct
fellow_cache_seg
fdo_fcs
;
...
@@ -735,6 +736,12 @@ struct fellow_cache_obj {
...
@@ -735,6 +736,12 @@ struct fellow_cache_obj {
struct
fellow_cache_seglist
fcsl_embed
;
struct
fellow_cache_seglist
fcsl_embed
;
};
};
/* comments on the above:
*
* *1) this is redundant to region_fdb(&fdo->fdo_fds.seg) an is duplicated here
* for efficiency of the fdb lookup (see fco_cmp())
*/
/*
/*
* we write fellow_disk_object(s) with the embedded fellow_disk_seglist such
* we write fellow_disk_object(s) with the embedded fellow_disk_seglist such
* that, when reading the object, the fcsl_embed can hold all of the
* that, when reading the object, the fcsl_embed can hold all of the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment