summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2022-02-17 23:40:23 -0500
committerMike Snitzer <snitzer@redhat.com>2022-02-21 15:36:29 -0500
commit743598f049df473869138d599d6ad3b7c740a73f (patch)
treef6d3f7fdf2d3f6462290c29ec72375897707db41 /drivers/md/dm-core.h
parent77c11720a48cbbd5ee1071e8540d0aa0f26d98f4 (diff)
downloadlinux-743598f049df473869138d599d6ad3b7c740a73f.tar.bz2
dm: record old_sector in dm_target_io before calling map function
Prep for being able to defer trace_block_bio_remap() until when the bio is remapped and submitted by the DM target. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r--drivers/md/dm-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h
index 253b6bb5a0fc..e2128d176831 100644
--- a/drivers/md/dm-core.h
+++ b/drivers/md/dm-core.h
@@ -216,6 +216,7 @@ struct dm_target_io {
unsigned int target_bio_nr;
unsigned int *len_ptr;
bool inside_dm_io;
+ sector_t old_sector;
struct bio clone;
};