xref: /kernel/linux/linux-5.10/drivers/md/persistent-data/dm-space-map-disk.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/md/persistent-data/
18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (C) 2011 Red Hat, Inc.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * This file is released under the GPL.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef _LINUX_DM_SPACE_MAP_DISK_H
88c2ecf20Sopenharmony_ci#define _LINUX_DM_SPACE_MAP_DISK_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include "dm-block-manager.h"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistruct dm_space_map;
138c2ecf20Sopenharmony_cistruct dm_transaction_manager;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/*
168c2ecf20Sopenharmony_ci * Unfortunately we have to use two-phase construction due to the cycle
178c2ecf20Sopenharmony_ci * between the tm and sm.
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_cistruct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
208c2ecf20Sopenharmony_ci				       dm_block_t nr_blocks);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_cistruct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
238c2ecf20Sopenharmony_ci				     void *root, size_t len);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* _LINUX_DM_SPACE_MAP_DISK_H */
26

Indexes created Thu Nov 07 10:32:03 CST 2024