diff options
Diffstat (limited to 'drivers/md/persistent-data/dm-space-map-disk.h')
-rw-r--r-- | drivers/md/persistent-data/dm-space-map-disk.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/md/persistent-data/dm-space-map-disk.h b/drivers/md/persistent-data/dm-space-map-disk.h new file mode 100644 index 00000000000..447a0a9a2d9 --- /dev/null +++ b/drivers/md/persistent-data/dm-space-map-disk.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Red Hat, Inc. | ||
3 | * | ||
4 | * This file is released under the GPL. | ||
5 | */ | ||
6 | |||
7 | #ifndef _LINUX_DM_SPACE_MAP_DISK_H | ||
8 | #define _LINUX_DM_SPACE_MAP_DISK_H | ||
9 | |||
10 | #include "dm-block-manager.h" | ||
11 | |||
12 | struct dm_space_map; | ||
13 | struct dm_transaction_manager; | ||
14 | |||
15 | /* | ||
16 | * Unfortunately we have to use two-phase construction due to the cycle | ||
17 | * between the tm and sm. | ||
18 | */ | ||
19 | struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm, | ||
20 | dm_block_t nr_blocks); | ||
21 | |||
22 | struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm, | ||
23 | void *root, size_t len); | ||
24 | |||
25 | #endif /* _LINUX_DM_SPACE_MAP_DISK_H */ | ||