bcachefs: Make memcpy_to_bio() param const

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2023-10-22 17:08:32 -04:00
committed by Kent Overstreet
parent 50fe5bd69c
commit 03c8c747a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ size_t bch2_rand_range(size_t max)
return rand;
}
void memcpy_to_bio(struct bio *dst, struct bvec_iter dst_iter, void *src)
void memcpy_to_bio(struct bio *dst, struct bvec_iter dst_iter, const void *src)
{
struct bio_vec bv;
struct bvec_iter iter;
+1 -1
View File
@@ -539,7 +539,7 @@ do { \
size_t bch2_rand_range(size_t);
void memcpy_to_bio(struct bio *, struct bvec_iter, void *);
void memcpy_to_bio(struct bio *, struct bvec_iter, const void *);
void memcpy_from_bio(void *, struct bio *, struct bvec_iter);
static inline void memcpy_u64s_small(void *dst, const void *src,