]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2bd0ea18 | 2 | /* |
da23017d NS |
3 | * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. |
4 | * All Rights Reserved. | |
2bd0ea18 NS |
5 | */ |
6 | #ifndef _XR_SCAN_H | |
7 | #define _XR_SCAN_H | |
8 | ||
9 | struct blkmap; | |
10 | ||
28e36fcc ES |
11 | void set_mp(xfs_mount_t *mpp); |
12 | ||
2bd0ea18 | 13 | int scan_lbtree( |
5a35bf2c | 14 | xfs_fsblock_t root, |
2bd0ea18 | 15 | int nlevels, |
b3563c19 | 16 | int (*func)(struct xfs_btree_block *block, |
2bd0ea18 NS |
17 | int level, |
18 | int type, | |
19 | int whichfork, | |
5a35bf2c | 20 | xfs_fsblock_t bno, |
2bd0ea18 | 21 | xfs_ino_t ino, |
5a35bf2c | 22 | xfs_rfsblock_t *tot, |
14f8b681 | 23 | uint64_t *nex, |
2bd0ea18 NS |
24 | struct blkmap **blkmapp, |
25 | bmap_cursor_t *bm_cursor, | |
26 | int isroot, | |
27 | int check_dups, | |
e0607266 | 28 | int *dirty, |
14f8b681 | 29 | uint64_t magic), |
2bd0ea18 NS |
30 | int type, |
31 | int whichfork, | |
32 | xfs_ino_t ino, | |
5a35bf2c | 33 | xfs_rfsblock_t *tot, |
14f8b681 | 34 | uint64_t *nex, |
2bd0ea18 NS |
35 | struct blkmap **blkmapp, |
36 | bmap_cursor_t *bm_cursor, | |
37 | int isroot, | |
e0607266 | 38 | int check_dups, |
14f8b681 | 39 | uint64_t magic, |
e0607266 | 40 | const struct xfs_buf_ops *ops); |
2bd0ea18 | 41 | |
e0607266 | 42 | int scan_bmapbt( |
b3563c19 | 43 | struct xfs_btree_block *block, |
2bd0ea18 NS |
44 | int level, |
45 | int type, | |
46 | int whichfork, | |
5a35bf2c | 47 | xfs_fsblock_t bno, |
2bd0ea18 | 48 | xfs_ino_t ino, |
5a35bf2c | 49 | xfs_rfsblock_t *tot, |
14f8b681 | 50 | uint64_t *nex, |
2bd0ea18 NS |
51 | struct blkmap **blkmapp, |
52 | bmap_cursor_t *bm_cursor, | |
53 | int isroot, | |
54 | int check_dups, | |
e0607266 | 55 | int *dirty, |
14f8b681 | 56 | uint64_t magic); |
2bd0ea18 | 57 | |
2bd0ea18 | 58 | void |
364a126c DC |
59 | scan_ags( |
60 | struct xfs_mount *mp, | |
61 | int scan_threads); | |
2bd0ea18 NS |
62 | |
63 | #endif /* _XR_SCAN_H */ |