Home
last modified time | relevance | path

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

123

/linux-6.1.9/fs/xfs/libxfs/
Dxfs_btree.h99 struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *);
100 void (*update_cursor)(struct xfs_btree_cur *src,
101 struct xfs_btree_cur *dst);
104 void (*set_root)(struct xfs_btree_cur *cur,
108 int (*alloc_block)(struct xfs_btree_cur *cur,
112 int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp);
115 void (*update_lastrec)(struct xfs_btree_cur *cur,
121 int (*get_minrecs)(struct xfs_btree_cur *cur, int level);
122 int (*get_maxrecs)(struct xfs_btree_cur *cur, int level);
125 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.h12 struct xfs_btree_cur;
16 extern int xfs_refcount_lookup_le(struct xfs_btree_cur *cur,
18 extern int xfs_refcount_lookup_ge(struct xfs_btree_cur *cur,
20 extern int xfs_refcount_lookup_eq(struct xfs_btree_cur *cur,
22 extern int xfs_refcount_get_rec(struct xfs_btree_cur *cur,
76 struct xfs_btree_cur *rcur, int error);
80 xfs_extlen_t *new_len, struct xfs_btree_cur **pcur);
82 extern int xfs_refcount_find_shared(struct xfs_btree_cur *cur,
112 extern int xfs_refcount_has_record(struct xfs_btree_cur *cur,
118 extern int xfs_refcount_insert(struct xfs_btree_cur *cur,
Dxfs_rmap.h124 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
127 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
130 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno,
133 int xfs_rmap_get_rec(struct xfs_btree_cur *cur, struct xfs_rmap_irec *irec,
137 struct xfs_btree_cur *cur,
141 int xfs_rmap_query_range(struct xfs_btree_cur *cur,
145 int xfs_rmap_query_all(struct xfs_btree_cur *cur, xfs_rmap_query_range_fn fn,
181 struct xfs_btree_cur *rcur, int error);
185 xfs_exntst_t state, struct xfs_btree_cur **pcur);
187 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno,
[all …]
Dxfs_ialloc_btree.c29 struct xfs_btree_cur *cur, in xfs_inobt_get_minrecs()
35 STATIC struct xfs_btree_cur *
37 struct xfs_btree_cur *cur) in xfs_inobt_dup_cursor()
45 struct xfs_btree_cur *cur, in xfs_inobt_set_root()
59 struct xfs_btree_cur *cur, in xfs_finobt_set_root()
75 struct xfs_btree_cur *cur, in xfs_inobt_mod_blockcount()
93 struct xfs_btree_cur *cur, in __xfs_inobt_alloc_block()
132 struct xfs_btree_cur *cur, in xfs_inobt_alloc_block()
142 struct xfs_btree_cur *cur, in xfs_finobt_alloc_block()
155 struct xfs_btree_cur *cur, in __xfs_inobt_free_block()
[all …]
Dxfs_alloc_btree.c25 STATIC struct xfs_btree_cur *
27 struct xfs_btree_cur *cur) in xfs_allocbt_dup_cursor()
35 struct xfs_btree_cur *cur, in xfs_allocbt_set_root()
54 struct xfs_btree_cur *cur, in xfs_allocbt_alloc_block()
84 struct xfs_btree_cur *cur, in xfs_allocbt_free_block()
108 struct xfs_btree_cur *cur, in xfs_allocbt_update_lastrec()
166 struct xfs_btree_cur *cur, in xfs_allocbt_get_minrecs()
174 struct xfs_btree_cur *cur, in xfs_allocbt_get_maxrecs()
213 struct xfs_btree_cur *cur, in xfs_allocbt_init_rec_from_cur()
222 struct xfs_btree_cur *cur, in xfs_allocbt_init_ptr_from_cur()
[all …]
Dxfs_refcount_btree.c27 static struct xfs_btree_cur *
29 struct xfs_btree_cur *cur) in xfs_refcountbt_dup_cursor()
37 struct xfs_btree_cur *cur, in xfs_refcountbt_set_root()
57 struct xfs_btree_cur *cur, in xfs_refcountbt_alloc_block()
102 struct xfs_btree_cur *cur, in xfs_refcountbt_free_block()
125 struct xfs_btree_cur *cur, in xfs_refcountbt_get_minrecs()
133 struct xfs_btree_cur *cur, in xfs_refcountbt_get_maxrecs()
161 struct xfs_btree_cur *cur, in xfs_refcountbt_init_rec_from_cur()
176 struct xfs_btree_cur *cur, in xfs_refcountbt_init_ptr_from_cur()
188 struct xfs_btree_cur *cur, in xfs_refcountbt_key_diff()
[all …]
Dxfs_ialloc.h14 struct xfs_btree_cur;
73 int xfs_inobt_lookup(struct xfs_btree_cur *cur, xfs_agino_t ino,
79 int xfs_inobt_get_rec(struct xfs_btree_cur *cur,
95 int xfs_ialloc_has_inodes_at_extent(struct xfs_btree_cur *cur,
97 int xfs_ialloc_has_inode_record(struct xfs_btree_cur *cur, xfs_agino_t low,
99 int xfs_ialloc_count_inodes(struct xfs_btree_cur *cur, xfs_agino_t *count,
101 int xfs_inobt_insert_rec(struct xfs_btree_cur *cur, uint16_t holemask,
Dxfs_rmap_btree.c52 static struct xfs_btree_cur *
54 struct xfs_btree_cur *cur) in xfs_rmapbt_dup_cursor()
62 struct xfs_btree_cur *cur, in xfs_rmapbt_set_root()
81 struct xfs_btree_cur *cur, in xfs_rmapbt_alloc_block()
118 struct xfs_btree_cur *cur, in xfs_rmapbt_free_block()
145 struct xfs_btree_cur *cur, in xfs_rmapbt_get_minrecs()
153 struct xfs_btree_cur *cur, in xfs_rmapbt_get_maxrecs()
200 struct xfs_btree_cur *cur, in xfs_rmapbt_init_rec_from_cur()
212 struct xfs_btree_cur *cur, in xfs_rmapbt_init_ptr_from_cur()
224 struct xfs_btree_cur *cur, in xfs_rmapbt_key_diff()
[all …]
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_btree.c68 struct xfs_btree_cur *cur, in xfs_btree_check_lblock_siblings()
95 struct xfs_btree_cur *cur, in xfs_btree_check_sblock_siblings()
124 struct xfs_btree_cur *cur, in __xfs_btree_check_lblock()
167 struct xfs_btree_cur *cur, in xfs_btree_check_lblock()
191 struct xfs_btree_cur *cur, in __xfs_btree_check_sblock()
233 struct xfs_btree_cur *cur, in xfs_btree_check_sblock()
256 struct xfs_btree_cur *cur, /* btree cursor */ in xfs_btree_check_block()
270 struct xfs_btree_cur *cur, in xfs_btree_check_lptr()
282 struct xfs_btree_cur *cur, in xfs_btree_check_sptr()
297 struct xfs_btree_cur *cur, in xfs_btree_check_ptr()
[all …]
Dxfs_alloc.h10 struct xfs_btree_cur;
152 struct xfs_btree_cur *cur, /* btree cursor */
159 struct xfs_btree_cur *cur, /* btree cursor */
166 struct xfs_btree_cur *cur, /* btree cursor */
186 struct xfs_btree_cur *cur,
190 int xfs_alloc_query_range(struct xfs_btree_cur *cur,
194 int xfs_alloc_query_all(struct xfs_btree_cur *cur, xfs_alloc_query_range_fn fn,
197 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
Dxfs_bmap_btree.c164 STATIC struct xfs_btree_cur *
166 struct xfs_btree_cur *cur) in xfs_bmbt_dup_cursor()
168 struct xfs_btree_cur *new; in xfs_bmbt_dup_cursor()
184 struct xfs_btree_cur *src, in xfs_bmbt_update_cursor()
185 struct xfs_btree_cur *dst) in xfs_bmbt_update_cursor()
198 struct xfs_btree_cur *cur, in xfs_bmbt_alloc_block()
281 struct xfs_btree_cur *cur, in xfs_bmbt_free_block()
301 struct xfs_btree_cur *cur, in xfs_bmbt_get_minrecs()
319 struct xfs_btree_cur *cur, in xfs_bmbt_get_maxrecs()
347 struct xfs_btree_cur *cur, in xfs_bmbt_get_dmaxrecs()
[all …]
Dxfs_ialloc_btree.h14 struct xfs_btree_cur;
49 extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *mp,
52 struct xfs_btree_cur *xfs_inobt_stage_cursor(struct xfs_mount *mp,
73 struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp);
75 void xfs_inobt_commit_staged_btree(struct xfs_btree_cur *cur,
Dxfs_alloc_btree.h14 struct xfs_btree_cur;
50 extern struct xfs_btree_cur *xfs_allocbt_init_cursor(struct xfs_mount *mp,
53 struct xfs_btree_cur *xfs_allocbt_stage_cursor(struct xfs_mount *mp,
60 void xfs_allocbt_commit_staged_btree(struct xfs_btree_cur *cur,
Dxfs_refcount_btree.h14 struct xfs_btree_cur;
48 extern struct xfs_btree_cur *xfs_refcountbt_init_cursor(struct xfs_mount *mp,
51 struct xfs_btree_cur *xfs_refcountbt_stage_cursor(struct xfs_mount *mp,
65 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.c37 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur,
39 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur,
48 struct xfs_btree_cur *cur, in xfs_refcount_lookup_le()
68 struct xfs_btree_cur *cur, in xfs_refcount_lookup_ge()
88 struct xfs_btree_cur *cur, in xfs_refcount_lookup_eq()
128 struct xfs_btree_cur *cur, in xfs_refcount_get_rec()
175 struct xfs_btree_cur *cur, in xfs_refcount_update()
204 struct xfs_btree_cur *cur, in xfs_refcount_insert()
240 struct xfs_btree_cur *cur, in xfs_refcount_delete()
361 struct xfs_btree_cur *cur, in xfs_refcount_split_extent()
[all …]
Dxfs_defer.h9 struct xfs_btree_cur;
55 struct list_head *item, struct xfs_btree_cur **state);
57 struct xfs_btree_cur *state, int error);
Dxfs_bmap_btree.h9 struct xfs_btree_cur;
99 extern int xfs_bmbt_get_maxrecs(struct xfs_btree_cur *, int level);
107 extern struct xfs_btree_cur *xfs_bmbt_init_cursor(struct xfs_mount *,
Dxfs_rmap.c35 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le()
71 struct xfs_btree_cur *cur, in xfs_rmap_lookup_eq()
94 struct xfs_btree_cur *cur, in xfs_rmap_update()
118 struct xfs_btree_cur *rcur, in xfs_rmap_insert()
160 struct xfs_btree_cur *rcur, in xfs_rmap_delete()
213 struct xfs_btree_cur *cur, in xfs_rmap_get_rec()
268 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor_helper()
297 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor()
367 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range_helper()
398 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range()
[all …]
/linux-6.1.9/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;
58 int xchk_btree(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
Dscrub.h46 struct xfs_btree_cur *bno_cur;
47 struct xfs_btree_cur *cnt_cur;
48 struct xfs_btree_cur *ino_cur;
49 struct xfs_btree_cur *fino_cur;
50 struct xfs_btree_cur *rmap_cur;
51 struct xfs_btree_cur *refc_cur;
Dbtree.c28 struct xfs_btree_cur *cur, in __xchk_btree_process_error()
63 struct xfs_btree_cur *cur, in xchk_btree_process_error()
74 struct xfs_btree_cur *cur, in xchk_btree_xref_process_error()
86 struct xfs_btree_cur *cur, in __xchk_btree_set_corrupt()
104 struct xfs_btree_cur *cur, in xchk_btree_set_corrupt()
114 struct xfs_btree_cur *cur, in xchk_btree_xref_set_corrupt()
129 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_rec()
178 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_key()
252 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_block_check_sibling()
255 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