@@ -213,7 +213,7 @@ static void bch_data_insert_start(struct closure *cl)
213213 do {
214214 unsigned i ;
215215 struct bkey * k ;
216- struct bio_set * split = op -> c -> bio_split ;
216+ struct bio_set * split = & op -> c -> bio_split ;
217217
218218 /* 1 for the device pointer and 1 for the chksum */
219219 if (bch_keylist_realloc (& op -> insert_keys ,
@@ -548,7 +548,7 @@ static int cache_lookup_fn(struct btree_op *op, struct btree *b, struct bkey *k)
548548
549549 n = bio_next_split (bio , min_t (uint64_t , INT_MAX ,
550550 KEY_OFFSET (k ) - bio -> bi_iter .bi_sector ),
551- GFP_NOIO , s -> d -> bio_split );
551+ GFP_NOIO , & s -> d -> bio_split );
552552
553553 bio_key = & container_of (n , struct bbio , bio )-> key ;
554554 bch_bkey_copy_single_ptr (bio_key , k , ptr );
@@ -707,15 +707,15 @@ static void search_free(struct closure *cl)
707707
708708 bio_complete (s );
709709 closure_debug_destroy (cl );
710- mempool_free (s , s -> d -> c -> search );
710+ mempool_free (s , & s -> d -> c -> search );
711711}
712712
713713static inline struct search * search_alloc (struct bio * bio ,
714714 struct bcache_device * d )
715715{
716716 struct search * s ;
717717
718- s = mempool_alloc (d -> c -> search , GFP_NOIO );
718+ s = mempool_alloc (& d -> c -> search , GFP_NOIO );
719719
720720 closure_init (& s -> cl , NULL );
721721 do_bio_hook (s , bio , request_endio );
@@ -864,7 +864,7 @@ static int cached_dev_cache_miss(struct btree *b, struct search *s,
864864 s -> cache_missed = 1 ;
865865
866866 if (s -> cache_miss || s -> iop .bypass ) {
867- miss = bio_next_split (bio , sectors , GFP_NOIO , s -> d -> bio_split );
867+ miss = bio_next_split (bio , sectors , GFP_NOIO , & s -> d -> bio_split );
868868 ret = miss == bio ? MAP_DONE : MAP_CONTINUE ;
869869 goto out_submit ;
870870 }
@@ -887,14 +887,14 @@ static int cached_dev_cache_miss(struct btree *b, struct search *s,
887887
888888 s -> iop .replace = true;
889889
890- miss = bio_next_split (bio , sectors , GFP_NOIO , s -> d -> bio_split );
890+ miss = bio_next_split (bio , sectors , GFP_NOIO , & s -> d -> bio_split );
891891
892892 /* btree_search_recurse()'s btree iterator is no good anymore */
893893 ret = miss == bio ? MAP_DONE : - EINTR ;
894894
895895 cache_bio = bio_alloc_bioset (GFP_NOWAIT ,
896896 DIV_ROUND_UP (s -> insert_bio_sectors , PAGE_SECTORS ),
897- dc -> disk .bio_split );
897+ & dc -> disk .bio_split );
898898 if (!cache_bio )
899899 goto out_submit ;
900900
@@ -1008,7 +1008,7 @@ static void cached_dev_write(struct cached_dev *dc, struct search *s)
10081008 struct bio * flush ;
10091009
10101010 flush = bio_alloc_bioset (GFP_NOIO , 0 ,
1011- dc -> disk .bio_split );
1011+ & dc -> disk .bio_split );
10121012 if (!flush ) {
10131013 s -> iop .status = BLK_STS_RESOURCE ;
10141014 goto insert_data ;
@@ -1021,7 +1021,7 @@ static void cached_dev_write(struct cached_dev *dc, struct search *s)
10211021 closure_bio_submit (s -> iop .c , flush , cl );
10221022 }
10231023 } else {
1024- s -> iop .bio = bio_clone_fast (bio , GFP_NOIO , dc -> disk .bio_split );
1024+ s -> iop .bio = bio_clone_fast (bio , GFP_NOIO , & dc -> disk .bio_split );
10251025 /* I/O request sent to backing device */
10261026 bio -> bi_end_io = backing_request_endio ;
10271027 closure_bio_submit (s -> iop .c , bio , cl );
0 commit comments