Home
last modified time | relevance | path

Searched refs:xfs_btree_cur (Results 1 – 25 of 54) sorted by relevance

123

/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_btree.h102 struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *);
103 void (*update_cursor)(struct xfs_btree_cur *src,
104 struct xfs_btree_cur *dst);
107 void (*set_root)(struct xfs_btree_cur *cur,
111 int (*alloc_block)(struct xfs_btree_cur *cur,
115 int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp);
118 void (*update_lastrec)(struct xfs_btree_cur *cur,
124 int (*get_minrecs)(struct xfs_btree_cur *cur, int level);
125 int (*get_maxrecs)(struct xfs_btree_cur *cur, int level);
128 int (*get_dmaxrecs)(struct xfs_btree_cur *cur, int level);
[all …]
Dxfs_btree_staging.h22 void xfs_btree_stage_afakeroot(struct xfs_btree_cur *cur,
24 void xfs_btree_commit_afakeroot(struct xfs_btree_cur *cur, struct xfs_trans *tp,
49 void xfs_btree_stage_ifakeroot(struct xfs_btree_cur *cur,
52 void xfs_btree_commit_ifakeroot(struct xfs_btree_cur *cur, struct xfs_trans *tp,
56 typedef int (*xfs_btree_bload_get_record_fn)(struct xfs_btree_cur *cur, void *priv);
57 typedef int (*xfs_btree_bload_claim_block_fn)(struct xfs_btree_cur *cur,
59 typedef size_t (*xfs_btree_bload_iroot_size_fn)(struct xfs_btree_cur *cur,
118 int xfs_btree_bload_compute_geometry(struct xfs_btree_cur *cur,
120 int xfs_btree_bload(struct xfs_btree_cur *cur, struct xfs_btree_bload *bbl,
Dxfs_refcount.h9 extern int xfs_refcount_lookup_le(struct xfs_btree_cur *cur,
11 extern int xfs_refcount_lookup_ge(struct xfs_btree_cur *cur,
13 extern int xfs_refcount_lookup_eq(struct xfs_btree_cur *cur,
15 extern int xfs_refcount_get_rec(struct xfs_btree_cur *cur,
38 struct xfs_btree_cur *rcur, int error);
42 xfs_extlen_t *new_len, struct xfs_btree_cur **pcur);
44 extern int xfs_refcount_find_shared(struct xfs_btree_cur *cur,
71 extern int xfs_refcount_has_record(struct xfs_btree_cur *cur,
76 extern int xfs_refcount_insert(struct xfs_btree_cur *cur,
Dxfs_rmap.h122 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
125 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
128 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno,
131 int xfs_rmap_get_rec(struct xfs_btree_cur *cur, struct xfs_rmap_irec *irec,
135 struct xfs_btree_cur *cur,
139 int xfs_rmap_query_range(struct xfs_btree_cur *cur,
142 int xfs_rmap_query_all(struct xfs_btree_cur *cur, xfs_rmap_query_range_fn fn,
178 struct xfs_btree_cur *rcur, int error);
182 xfs_exntst_t state, struct xfs_btree_cur **pcur);
184 int xfs_rmap_find_left_neighbor(struct xfs_btree_cur *cur, xfs_agblock_t bno,
[all …]
Dxfs_alloc_btree.c24 STATIC struct xfs_btree_cur *
26 struct xfs_btree_cur *cur) in xfs_allocbt_dup_cursor()
35 struct xfs_btree_cur *cur, in xfs_allocbt_set_root()
55 struct xfs_btree_cur *cur, in xfs_allocbt_alloc_block()
85 struct xfs_btree_cur *cur, in xfs_allocbt_free_block()
109 struct xfs_btree_cur *cur, in xfs_allocbt_update_lastrec()
167 struct xfs_btree_cur *cur, in xfs_allocbt_get_minrecs()
175 struct xfs_btree_cur *cur, in xfs_allocbt_get_maxrecs()
214 struct xfs_btree_cur *cur, in xfs_allocbt_init_rec_from_cur()
223 struct xfs_btree_cur *cur, in xfs_allocbt_init_ptr_from_cur()
[all …]
Dxfs_ialloc_btree.c26 struct xfs_btree_cur *cur, in xfs_inobt_get_minrecs()
32 STATIC struct xfs_btree_cur *
34 struct xfs_btree_cur *cur) in xfs_inobt_dup_cursor()
43 struct xfs_btree_cur *cur, in xfs_inobt_set_root()
57 struct xfs_btree_cur *cur, in xfs_finobt_set_root()
73 struct xfs_btree_cur *cur, in xfs_inobt_mod_blockcount()
91 struct xfs_btree_cur *cur, in __xfs_inobt_alloc_block()
130 struct xfs_btree_cur *cur, in xfs_inobt_alloc_block()
140 struct xfs_btree_cur *cur, in xfs_finobt_alloc_block()
153 struct xfs_btree_cur *cur, in __xfs_inobt_free_block()
[all …]
Dxfs_refcount_btree.c24 static struct xfs_btree_cur *
26 struct xfs_btree_cur *cur) in xfs_refcountbt_dup_cursor()
34 struct xfs_btree_cur *cur, in xfs_refcountbt_set_root()
54 struct xfs_btree_cur *cur, in xfs_refcountbt_alloc_block()
99 struct xfs_btree_cur *cur, in xfs_refcountbt_free_block()
122 struct xfs_btree_cur *cur, in xfs_refcountbt_get_minrecs()
130 struct xfs_btree_cur *cur, in xfs_refcountbt_get_maxrecs()
158 struct xfs_btree_cur *cur, in xfs_refcountbt_init_rec_from_cur()
168 struct xfs_btree_cur *cur, in xfs_refcountbt_init_ptr_from_cur()
180 struct xfs_btree_cur *cur, in xfs_refcountbt_key_diff()
[all …]
Dxfs_ialloc.h14 struct xfs_btree_cur;
120 int xfs_inobt_lookup(struct xfs_btree_cur *cur, xfs_agino_t ino,
126 int xfs_inobt_get_rec(struct xfs_btree_cur *cur,
143 int xfs_ialloc_has_inodes_at_extent(struct xfs_btree_cur *cur,
145 int xfs_ialloc_has_inode_record(struct xfs_btree_cur *cur, xfs_agino_t low,
147 int xfs_ialloc_count_inodes(struct xfs_btree_cur *cur, xfs_agino_t *count,
149 int xfs_inobt_insert_rec(struct xfs_btree_cur *cur, uint16_t holemask,
Dxfs_rmap_btree.c50 static struct xfs_btree_cur *
52 struct xfs_btree_cur *cur) in xfs_rmapbt_dup_cursor()
60 struct xfs_btree_cur *cur, in xfs_rmapbt_set_root()
80 struct xfs_btree_cur *cur, in xfs_rmapbt_alloc_block()
119 struct xfs_btree_cur *cur, in xfs_rmapbt_free_block()
148 struct xfs_btree_cur *cur, in xfs_rmapbt_get_minrecs()
156 struct xfs_btree_cur *cur, in xfs_rmapbt_get_maxrecs()
203 struct xfs_btree_cur *cur, in xfs_rmapbt_init_rec_from_cur()
215 struct xfs_btree_cur *cur, in xfs_rmapbt_init_ptr_from_cur()
227 struct xfs_btree_cur *cur, in xfs_rmapbt_key_diff()
[all …]
Dxfs_alloc.h10 struct xfs_btree_cur;
188 struct xfs_btree_cur *cur, /* btree cursor */
195 struct xfs_btree_cur *cur, /* btree cursor */
202 struct xfs_btree_cur *cur, /* btree cursor */
220 struct xfs_btree_cur *cur,
224 int xfs_alloc_query_range(struct xfs_btree_cur *cur,
228 int xfs_alloc_query_all(struct xfs_btree_cur *cur, xfs_alloc_query_range_fn fn,
231 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
Dxfs_btree_staging.c45 STATIC struct xfs_btree_cur *
47 struct xfs_btree_cur *cur) in xfs_btree_fakeroot_dup_cursor()
62 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_alloc_block()
77 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_free_block()
87 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_init_ptr_from_cur()
115 struct xfs_btree_cur *cur, in xfs_btree_afakeroot_set_root()
133 struct xfs_btree_cur *cur, in xfs_btree_stage_afakeroot()
164 struct xfs_btree_cur *cur, in xfs_btree_commit_afakeroot()
213 struct xfs_btree_cur *cur, in xfs_btree_stage_ifakeroot()
247 struct xfs_btree_cur *cur, in xfs_btree_commit_ifakeroot()
[all …]
Dxfs_bmap_btree.c162 STATIC struct xfs_btree_cur *
164 struct xfs_btree_cur *cur) in xfs_bmbt_dup_cursor()
166 struct xfs_btree_cur *new; in xfs_bmbt_dup_cursor()
182 struct xfs_btree_cur *src, in xfs_bmbt_update_cursor()
183 struct xfs_btree_cur *dst) in xfs_bmbt_update_cursor()
196 struct xfs_btree_cur *cur, in xfs_bmbt_alloc_block()
279 struct xfs_btree_cur *cur, in xfs_bmbt_free_block()
299 struct xfs_btree_cur *cur, in xfs_bmbt_get_minrecs()
317 struct xfs_btree_cur *cur, in xfs_bmbt_get_maxrecs()
345 struct xfs_btree_cur *cur, in xfs_bmbt_get_dmaxrecs()
[all …]
Dxfs_ialloc_btree.h14 struct xfs_btree_cur;
48 extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *,
51 struct xfs_btree_cur *xfs_inobt_stage_cursor(struct xfs_mount *mp,
72 struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp);
74 void xfs_inobt_commit_staged_btree(struct xfs_btree_cur *cur,
Dxfs_btree.c59 struct xfs_btree_cur *cur, in __xfs_btree_check_lblock()
100 struct xfs_btree_cur *cur, in xfs_btree_check_lblock()
124 struct xfs_btree_cur *cur, in __xfs_btree_check_sblock()
163 struct xfs_btree_cur *cur, in xfs_btree_check_sblock()
186 struct xfs_btree_cur *cur, /* btree cursor */ in xfs_btree_check_block()
200 struct xfs_btree_cur *cur, in xfs_btree_check_lptr()
212 struct xfs_btree_cur *cur, in xfs_btree_check_sptr()
227 struct xfs_btree_cur *cur, in xfs_btree_check_ptr()
338 struct xfs_btree_cur *cur, in xfs_btree_free_block()
521 static inline size_t xfs_btree_block_len(struct xfs_btree_cur *cur) in xfs_btree_block_len()
[all …]
Dxfs_alloc_btree.h14 struct xfs_btree_cur;
49 extern struct xfs_btree_cur *xfs_allocbt_init_cursor(struct xfs_mount *,
52 struct xfs_btree_cur *xfs_allocbt_stage_cursor(struct xfs_mount *mp,
59 void xfs_allocbt_commit_staged_btree(struct xfs_btree_cur *cur,
Dxfs_refcount_btree.h14 struct xfs_btree_cur;
47 extern struct xfs_btree_cur *xfs_refcountbt_init_cursor(struct xfs_mount *mp,
50 struct xfs_btree_cur *xfs_refcountbt_stage_cursor(struct xfs_mount *mp,
64 void xfs_refcountbt_commit_staged_btree(struct xfs_btree_cur *cur,
Dxfs_rmap_btree.h10 struct xfs_btree_cur;
44 struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp,
47 struct xfs_btree_cur *xfs_rmapbt_stage_cursor(struct xfs_mount *mp,
49 void xfs_rmapbt_commit_staged_btree(struct xfs_btree_cur *cur,
Dxfs_refcount.c34 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur,
36 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur,
45 struct xfs_btree_cur *cur, in xfs_refcount_lookup_le()
62 struct xfs_btree_cur *cur, in xfs_refcount_lookup_ge()
79 struct xfs_btree_cur *cur, in xfs_refcount_lookup_eq()
106 struct xfs_btree_cur *cur, in xfs_refcount_get_rec()
166 struct xfs_btree_cur *cur, in xfs_refcount_update()
190 struct xfs_btree_cur *cur, in xfs_refcount_insert()
223 struct xfs_btree_cur *cur, in xfs_refcount_delete()
343 struct xfs_btree_cur *cur, in xfs_refcount_split_extent()
[all …]
Dxfs_defer.h9 struct xfs_btree_cur;
54 struct list_head *item, struct xfs_btree_cur **state);
56 struct xfs_btree_cur *state, int error);
Dxfs_bmap_btree.h9 struct xfs_btree_cur;
98 extern int xfs_bmbt_get_maxrecs(struct xfs_btree_cur *, int level);
106 extern struct xfs_btree_cur *xfs_bmbt_init_cursor(struct xfs_mount *,
Dxfs_rmap.c31 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le()
53 struct xfs_btree_cur *cur, in xfs_rmap_lookup_eq()
76 struct xfs_btree_cur *cur, in xfs_rmap_update()
100 struct xfs_btree_cur *rcur, in xfs_rmap_insert()
142 struct xfs_btree_cur *rcur, in xfs_rmap_delete()
195 struct xfs_btree_cur *cur, in xfs_rmap_get_rec()
256 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor_helper()
286 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor()
332 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range_helper()
364 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range()
[all …]
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dbtree.h13 struct xfs_btree_cur *cur, int level, int *error);
17 struct xfs_btree_cur *cur, int level, int *error);
21 struct xfs_btree_cur *cur, int level);
25 struct xfs_btree_cur *cur, int level);
35 struct xfs_btree_cur *cur;
47 int xchk_btree(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
Dscrub.h48 struct xfs_btree_cur *bno_cur;
49 struct xfs_btree_cur *cnt_cur;
50 struct xfs_btree_cur *ino_cur;
51 struct xfs_btree_cur *fino_cur;
52 struct xfs_btree_cur *rmap_cur;
53 struct xfs_btree_cur *refc_cur;
Dbtree.c27 struct xfs_btree_cur *cur, in __xchk_btree_process_error()
62 struct xfs_btree_cur *cur, in xchk_btree_process_error()
73 struct xfs_btree_cur *cur, in xchk_btree_xref_process_error()
85 struct xfs_btree_cur *cur, in __xchk_btree_set_corrupt()
103 struct xfs_btree_cur *cur, in xchk_btree_set_corrupt()
113 struct xfs_btree_cur *cur, in xchk_btree_xref_set_corrupt()
128 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_rec()
177 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_key()
251 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_block_check_sibling()
254 struct xfs_btree_cur *ncur = NULL; in xchk_btree_block_check_sibling()
[all …]
Dbitmap.h32 struct xfs_btree_cur *cur);
34 struct xfs_btree_cur *cur);

123