@@ -108,7 +108,7 @@ class CacheDirTest : public CacheInit
108
108
109
109
// test insert
110
110
int inserted = 0 ;
111
- int free = stripe->directory .freelist_length (stripe, s);
111
+ int free = stripe->directory .freelist_length (s);
112
112
int n = free;
113
113
while (n--) {
114
114
if (!stripe->directory .insert (&key, stripe, &dir)) {
@@ -125,7 +125,7 @@ class CacheDirTest : public CacheInit
125
125
}
126
126
}
127
127
stripe->directory .clean_segment (s, stripe);
128
- int newfree = stripe->directory .freelist_length (stripe, s);
128
+ int newfree = stripe->directory .freelist_length (s);
129
129
CHECK (static_cast <unsigned int >(newfree - free) <= 1 );
130
130
131
131
// test insert-delete
@@ -212,15 +212,15 @@ class CacheDirTest : public CacheInit
212
212
Dir *seg1 = vol->directory .get_segment (s1);
213
213
// freelist_length in freelist with loop
214
214
dir_corrupt_bucket (dir_from_offset (vol->header ->freelist [s], seg1), s1, vol);
215
- vol->directory .freelist_length (vol, s1);
215
+ vol->directory .freelist_length (s1);
216
216
217
217
rand_CacheKey (&key);
218
218
s1 = key.slice32 (0 ) % vol->segments ;
219
219
b1 = key.slice32 (1 ) % vol->buckets ;
220
220
// bucket_length in bucket with loop
221
221
dir_corrupt_bucket (dir_bucket (b1, vol->directory .get_segment (s1)), s1, vol);
222
222
vol->directory .bucket_length (dir_bucket (b1, vol->directory .get_segment (s1)), s1, vol);
223
- CHECK (vol->directory .check (vol ));
223
+ CHECK (vol->directory .check ());
224
224
#else
225
225
// test corruption detection
226
226
rand_CacheKey (&key);
@@ -233,7 +233,7 @@ class CacheDirTest : public CacheInit
233
233
stripe->directory .insert (&key, stripe, &dir1);
234
234
stripe->directory .insert (&key, stripe, &dir1);
235
235
dir_corrupt_bucket (dir_bucket (b1, stripe->directory .get_segment (s1)), s1, stripe);
236
- CHECK (!stripe->directory .check (stripe ));
236
+ CHECK (!stripe->directory .check ());
237
237
#endif
238
238
}
239
239
stripe->clear_dir ();
0 commit comments