Home
last modified time | relevance | path

Searched refs:bmd (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/block/
Dblk-map.c24 struct bio_map_data *bmd; in bio_alloc_map_data() local
29 bmd = kmalloc(struct_size(bmd, iov, data->nr_segs), gfp_mask); in bio_alloc_map_data()
30 if (!bmd) in bio_alloc_map_data()
32 bmd->iter = *data; in bio_alloc_map_data()
34 memcpy(bmd->iov, iter_iov(data), sizeof(struct iovec) * data->nr_segs); in bio_alloc_map_data()
35 bmd->iter.__iov = bmd->iov; in bio_alloc_map_data()
37 return bmd; in bio_alloc_map_data()
111 struct bio_map_data *bmd = bio->bi_private; in bio_uncopy_user() local
114 if (!bmd->is_null_mapped) { in bio_uncopy_user()
123 ret = bio_copy_to_iter(bio, bmd->iter); in bio_uncopy_user()
[all …]