@@ -142,7 +142,7 @@ static const char *read_super(struct cache_sb *sb, struct block_device *bdev,
142142 goto err ;
143143
144144 err = "Bad UUID" ;
145- if (is_zero (sb -> uuid , 16 ))
145+ if (bch_is_zero (sb -> uuid , 16 ))
146146 goto err ;
147147
148148 err = "Unsupported superblock version" ;
@@ -170,7 +170,7 @@ static const char *read_super(struct cache_sb *sb, struct block_device *bdev,
170170 goto out ;
171171
172172 err = "Bad UUID" ;
173- if (is_zero (sb -> set_uuid , 16 ))
173+ if (bch_is_zero (sb -> set_uuid , 16 ))
174174 goto err ;
175175
176176 err = "Bad cache device number in set" ;
@@ -218,7 +218,7 @@ static void __write_super(struct cache_sb *sb, struct bio *bio)
218218 bio -> bi_sector = SB_SECTOR ;
219219 bio -> bi_rw = REQ_SYNC |REQ_META ;
220220 bio -> bi_size = SB_SIZE ;
221- bio_map (bio , NULL );
221+ bch_bio_map (bio , NULL );
222222
223223 out -> offset = cpu_to_le64 (sb -> offset );
224224 out -> version = cpu_to_le64 (sb -> version );
@@ -332,7 +332,7 @@ static void uuid_io(struct cache_set *c, unsigned long rw,
332332
333333 bio -> bi_end_io = uuid_endio ;
334334 bio -> bi_private = cl ;
335- bio_map (bio , c -> uuids );
335+ bch_bio_map (bio , c -> uuids );
336336
337337 bch_submit_bbio (bio , c , k , i );
338338
@@ -344,7 +344,7 @@ static void uuid_io(struct cache_set *c, unsigned long rw,
344344 pkey (& c -> uuid_bucket ));
345345
346346 for (u = c -> uuids ; u < c -> uuids + c -> nr_uuids ; u ++ )
347- if (!is_zero (u -> uuid , 16 ))
347+ if (!bch_is_zero (u -> uuid , 16 ))
348348 pr_debug ("Slot %zi: %pU: %s: 1st: %u last: %u inv: %u" ,
349349 u - c -> uuids , u -> uuid , u -> label ,
350350 u -> first_reg , u -> last_reg , u -> invalidated );
@@ -491,7 +491,7 @@ static void prio_io(struct cache *ca, uint64_t bucket, unsigned long rw)
491491
492492 bio -> bi_end_io = prio_endio ;
493493 bio -> bi_private = ca ;
494- bio_map (bio , ca -> disk_buckets );
494+ bch_bio_map (bio , ca -> disk_buckets );
495495
496496 closure_bio_submit (bio , & ca -> prio , ca );
497497 closure_sync (cl );
@@ -538,7 +538,7 @@ void bch_prio_write(struct cache *ca)
538538
539539 p -> next_bucket = ca -> prio_buckets [i + 1 ];
540540 p -> magic = pset_magic (ca );
541- p -> csum = crc64 (& p -> magic , bucket_bytes (ca ) - 8 );
541+ p -> csum = bch_crc64 (& p -> magic , bucket_bytes (ca ) - 8 );
542542
543543 bucket = bch_bucket_alloc (ca , WATERMARK_PRIO , & cl );
544544 BUG_ON (bucket == -1 );
@@ -585,7 +585,7 @@ static void prio_read(struct cache *ca, uint64_t bucket)
585585
586586 prio_io (ca , bucket , READ_SYNC );
587587
588- if (p -> csum != crc64 (& p -> magic , bucket_bytes (ca ) - 8 ))
588+ if (p -> csum != bch_crc64 (& p -> magic , bucket_bytes (ca ) - 8 ))
589589 pr_warn ("bad csum reading priorities" );
590590
591591 if (p -> magic != pset_magic (ca ))
@@ -898,7 +898,7 @@ int bch_cached_dev_attach(struct cached_dev *dc, struct cache_set *c)
898898 sysfs_remove_file(&dc->kobj, &sysfs_attach);
899899 */
900900
901- if (is_zero (u -> uuid , 16 )) {
901+ if (bch_is_zero (u -> uuid , 16 )) {
902902 struct closure cl ;
903903 closure_init_stack (& cl );
904904
0 commit comments