uuid-tree.h 635 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BTRFS_UUID_TREE_H
  3. #define BTRFS_UUID_TREE_H
  4. #include <linux/types.h>
  5. struct btrfs_trans_handle;
  6. struct btrfs_fs_info;
  7. int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
  8. u64 subid);
  9. int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
  10. u64 subid);
  11. int btrfs_uuid_tree_check_overflow(struct btrfs_fs_info *fs_info,
  12. const u8 *uuid, u8 type);
  13. int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info);
  14. int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info);
  15. int btrfs_uuid_scan_kthread(void *data);
  16. #endif