mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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:
parent
50fe5bd69c
commit
03c8c747a0
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user