Jeffle Xu 62f263178c dm: cleanup of front padding calculation
Add two helper macros calculating the offset of bio in struct dm_io and
struct dm_target_io respectively.

Besides, simplify the front padding calculation in
dm_alloc_md_mempools().

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2021-02-03 10:10:05 -05:00
..
2021-02-03 10:10:05 -05:00
2019-11-12 19:12:07 -07:00
2020-07-08 17:20:46 -06:00
2020-08-03 11:57:03 -07:00
2021-02-03 10:10:05 -05:00
2021-01-04 15:02:32 -05:00
2020-12-16 13:09:32 -08:00
2021-02-01 09:35:20 -07:00
2021-01-27 09:51:48 -07:00
2020-12-16 12:57:51 -08:00
2021-01-27 09:51:48 -07:00
2021-01-27 09:51:48 -07:00