Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30187e1d authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm: rename target's per_bio_data_size to per_io_data_size



Request-based DM will also make use of per_bio_data_size.

Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent eca7ee6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2771,7 +2771,7 @@ static int cache_create(struct cache_args *ca, struct cache **result)
	ti->split_discard_bios = false;

	cache->features = ca->features;
	ti->per_bio_data_size = get_per_bio_data_size(cache);
	ti->per_io_data_size = get_per_bio_data_size(cache);

	cache->callbacks.congested_fn = cache_is_congested;
	dm_table_add_target_callbacks(ti->table, &cache->callbacks);
+1 −1
Original line number Diff line number Diff line
@@ -1788,7 +1788,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
		goto bad;
	}

	cc->per_bio_data_size = ti->per_bio_data_size =
	cc->per_bio_data_size = ti->per_io_data_size =
		ALIGN(sizeof(struct dm_crypt_io) + cc->dmreq_start +
		      sizeof(struct dm_crypt_request) + iv_size_padding + cc->iv_size,
		      ARCH_KMALLOC_MINALIGN);
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)

	ti->num_flush_bios = 1;
	ti->num_discard_bios = 1;
	ti->per_bio_data_size = sizeof(struct dm_delay_info);
	ti->per_io_data_size = sizeof(struct dm_delay_info);
	ti->private = dc;
	return 0;

+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ static int flakey_ctr(struct dm_target *ti, unsigned int argc, char **argv)

	ti->num_flush_bios = 1;
	ti->num_discard_bios = 1;
	ti->per_bio_data_size = sizeof(struct per_bio_data);
	ti->per_io_data_size = sizeof(struct per_bio_data);
	ti->private = fc;
	return 0;

+1 −1
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ static int log_writes_ctr(struct dm_target *ti, unsigned int argc, char **argv)
	ti->flush_supported = true;
	ti->num_discard_bios = 1;
	ti->discards_supported = true;
	ti->per_bio_data_size = sizeof(struct per_bio_data);
	ti->per_io_data_size = sizeof(struct per_bio_data);
	ti->private = lc;
	return 0;

Loading