@@ -12,7 +12,7 @@ static inline void obj_init(cache_t *cache, const request_t *req,
1212 cache_obj -> GLCache .last_access_vtime = params -> curr_vtime ;
1313 cache_obj -> GLCache .in_cache = 1 ;
1414 cache_obj -> GLCache .seen_after_snapshot = 0 ;
15- cache_obj -> misc . next_access_vtime = req -> next_access_vtime ;
15+ cache_obj -> next_access_vtime = req -> next_access_vtime ;
1616
1717 cache_obj -> GLCache .segment = seg ;
1818 cache_obj -> GLCache .idx_in_segment = seg -> n_obj ;
@@ -25,7 +25,7 @@ static inline int64_t obj_age(GLCache_params_t *params, cache_obj_t *obj) {
2525/* some internal state update when an object is requested */
2626static inline void obj_hit_update (GLCache_params_t * params , cache_obj_t * obj ,
2727 const request_t * req ) {
28- obj -> misc . next_access_vtime = req -> next_access_vtime ;
28+ obj -> next_access_vtime = req -> next_access_vtime ;
2929 obj -> GLCache .last_access_rtime = params -> curr_rtime ;
3030 obj -> GLCache .last_access_vtime = params -> curr_vtime ;
3131 obj -> GLCache .freq += 1 ;
@@ -71,14 +71,14 @@ static inline double cal_obj_score(GLCache_params_t *params,
7171 (curr_rtime - cache_obj -> GLCache .last_access_rtime );
7272
7373 } else if (score_type == OBJ_SCORE_ORACLE ) {
74- if (cache_obj -> misc . next_access_vtime == -1 ||
75- cache_obj -> misc . next_access_vtime == INT64_MAX ) {
74+ if (cache_obj -> next_access_vtime == -1 ||
75+ cache_obj -> next_access_vtime == INT64_MAX ) {
7676 return 0 ;
7777 }
7878
79- DEBUG_ASSERT (cache_obj -> misc . next_access_vtime > curr_vtime );
79+ DEBUG_ASSERT (cache_obj -> next_access_vtime > curr_vtime );
8080 return 1.0e8 / (double )cache_obj -> obj_size /
81- (double )(cache_obj -> misc . next_access_vtime - curr_vtime );
81+ (double )(cache_obj -> next_access_vtime - curr_vtime );
8282
8383 } else {
8484 printf ("unknown cache type %d\n" , score_type );
0 commit comments