mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
dm: export struct dm_dev
Split struct dm_dev in two and publish the part that other targets need in include/linux/device-mapper.h. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
parent
933f01d433
commit
82b1519b34
4 changed files with 49 additions and 40 deletions
|
@ -1131,7 +1131,7 @@ static void retrieve_deps(struct dm_table *table,
|
|||
unsigned int count = 0;
|
||||
struct list_head *tmp;
|
||||
size_t len, needed;
|
||||
struct dm_dev *dd;
|
||||
struct dm_dev_internal *dd;
|
||||
struct dm_target_deps *deps;
|
||||
|
||||
deps = get_result_buffer(param, param_size, &len);
|
||||
|
@ -1157,7 +1157,7 @@ static void retrieve_deps(struct dm_table *table,
|
|||
deps->count = count;
|
||||
count = 0;
|
||||
list_for_each_entry (dd, dm_table_get_devices(table), list)
|
||||
deps->dev[count++] = huge_encode_dev(dd->bdev->bd_dev);
|
||||
deps->dev[count++] = huge_encode_dev(dd->dm_dev.bdev->bd_dev);
|
||||
|
||||
param->data_size = param->data_start + needed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue