Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2011 Red Hat, Inc.
0003  *
0004  * This file is released under the GPL.
0005  */
0006 
0007 #ifndef _LINUX_DM_SPACE_MAP_DISK_H
0008 #define _LINUX_DM_SPACE_MAP_DISK_H
0009 
0010 #include "dm-block-manager.h"
0011 
0012 struct dm_space_map;
0013 struct dm_transaction_manager;
0014 
0015 /*
0016  * Unfortunately we have to use two-phase construction due to the cycle
0017  * between the tm and sm.
0018  */
0019 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
0020                        dm_block_t nr_blocks);
0021 
0022 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
0023                      void *root, size_t len);
0024 
0025 #endif /* _LINUX_DM_SPACE_MAP_DISK_H */