dm-space-map-disk.h 647 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2011 Red Hat, Inc.
  4. *
  5. * This file is released under the GPL.
  6. */
  7. #ifndef _LINUX_DM_SPACE_MAP_DISK_H
  8. #define _LINUX_DM_SPACE_MAP_DISK_H
  9. #include "dm-block-manager.h"
  10. struct dm_space_map;
  11. struct dm_transaction_manager;
  12. /*
  13. * Unfortunately we have to use two-phase construction due to the cycle
  14. * between the tm and sm.
  15. */
  16. struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
  17. dm_block_t nr_blocks);
  18. struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
  19. void *root, size_t len);
  20. #endif /* _LINUX_DM_SPACE_MAP_DISK_H */