Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / md / persistent-data / dm-space-map-disk.h
blob6f8665db94db4da2fbb825c0dfec64ed2ca8bce1
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2011 Red Hat, Inc.
5 * This file is released under the GPL.
6 */
8 #ifndef _LINUX_DM_SPACE_MAP_DISK_H
9 #define _LINUX_DM_SPACE_MAP_DISK_H
11 #include "dm-block-manager.h"
13 struct dm_space_map;
14 struct dm_transaction_manager;
17 * Unfortunately we have to use two-phase construction due to the cycle
18 * between the tm and sm.
20 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
21 dm_block_t nr_blocks);
23 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
24 void *root, size_t len);
26 #endif /* _LINUX_DM_SPACE_MAP_DISK_H */