]> git.baikalelectronics.ru Git - kernel.git/commit
dm: cleanup of front padding calculation
authorJeffle Xu <jefflexu@linux.alibaba.com>
Tue, 12 Jan 2021 05:52:00 +0000 (13:52 +0800)
committerMike Snitzer <snitzer@redhat.com>
Wed, 3 Feb 2021 15:10:05 +0000 (10:10 -0500)
commitb5db2e2cff09dd6e6654d203ab715838a34d2337
treef03a3520bd687cf054020832f55b31c03d5d946c
parent41aceaa4ff60d89c2962a75616dd5f7429fee13d
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>
drivers/md/dm.c