diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-11-25 16:03:31 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-12-10 10:38:56 -0500 |
commit | fe3265b180d6282648f03bc6ac3958c733df01c2 (patch) | |
tree | acf20a7a1efed26556b258a6f6339167bff59202 /drivers/md/dm-cache-target.c | |
parent | 086fbbbda9b743b149b0294e0feec257e2c311d5 (diff) |
dm: don't save and restore bi_private
Device mapper used the field bi_private to point to dm_target_io. However,
since kernel 3.15, the bi_private field is unused, and so the targets do
not need to save and restore this field.
This patch removes code that saves and restores bi_private from dm-cache,
dm-snapshot and dm-verity.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
-rw-r--r-- | drivers/md/dm-cache-target.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index 2fd4c8296144..5780accffa30 100644 --- a/drivers/md/dm-cache-target.c +++ b/drivers/md/dm-cache-target.c | |||
@@ -118,14 +118,12 @@ static void iot_io_end(struct io_tracker *iot, sector_t len) | |||
118 | */ | 118 | */ |
119 | struct dm_hook_info { | 119 | struct dm_hook_info { |
120 | bio_end_io_t *bi_end_io; | 120 | bio_end_io_t *bi_end_io; |
121 | void *bi_private; | ||
122 | }; | 121 | }; |
123 | 122 | ||
124 | static void dm_hook_bio(struct dm_hook_info *h, struct bio *bio, | 123 | static void dm_hook_bio(struct dm_hook_info *h, struct bio *bio, |
125 | bio_end_io_t *bi_end_io, void *bi_private) | 124 | bio_end_io_t *bi_end_io, void *bi_private) |
126 | { | 125 | { |
127 | h->bi_end_io = bio->bi_end_io; | 126 | h->bi_end_io = bio->bi_end_io; |
128 | h->bi_private = bio->bi_private; | ||
129 | 127 | ||
130 | bio->bi_end_io = bi_end_io; | 128 | bio->bi_end_io = bi_end_io; |
131 | bio->bi_private = bi_private; | 129 | bio->bi_private = bi_private; |
@@ -134,7 +132,6 @@ static void dm_hook_bio(struct dm_hook_info *h, struct bio *bio, | |||
134 | static void dm_unhook_bio(struct dm_hook_info *h, struct bio *bio) | 132 | static void dm_unhook_bio(struct dm_hook_info *h, struct bio *bio) |
135 | { | 133 | { |
136 | bio->bi_end_io = h->bi_end_io; | 134 | bio->bi_end_io = h->bi_end_io; |
137 | bio->bi_private = h->bi_private; | ||
138 | } | 135 | } |
139 | 136 | ||
140 | /*----------------------------------------------------------------*/ | 137 | /*----------------------------------------------------------------*/ |