On 2023/3/7 22:15, Ming Lei wrote: > 'struct ublk_map_data' is passed to ublk_copy_user_pages() > for copying data between userspace buffer and request pages. > > Here what matters is userspace buffer address/len and 'struct request', > so replace ->io field with user buffer address, and rename max_bytes > as len. > > Meantime remove 'ubq' field from ublk_map_data, since it isn't used > any more. > > Then code becomes more readable. > > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> > --- Reviewed-by: Ziyang Zhang <ZiyangZhang@xxxxxxxxxxxxxxxxx>