blob: b3836f21085d7e4031d48c8191ee042acf5ebc46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2022 Oracle. All Rights Reserved.
* Author: Darrick J. Wong <djwong@kernel.org>
*/
#ifndef XFS_SCRUB_XFBTREE_H__
#define XFS_SCRUB_XFBTREE_H__
#ifdef CONFIG_XFS_IN_MEMORY_BTREE
/* Root block for an in-memory btree. */
struct xfs_btree_mem_head {
__be32 mh_magic;
__be32 mh_nlevels;
__be64 mh_owner;
__be64 mh_root;
uuid_t mh_uuid;
};
#define XFS_BTREE_MEM_HEAD_MAGIC 0x4341544D /* "CATM" */
/* xfile-backed in-memory btrees */
struct xfbtree {
/* buffer cache target for this in-memory btree */
struct xfs_buftarg *target;
/* Owner of this btree. */
unsigned long long owner;
};
#endif /* CONFIG_XFS_IN_MEMORY_BTREE */
#endif /* XFS_SCRUB_XFBTREE_H__ */
|