Home
last modified time | relevance | path

Searched refs:bc_ops (Results 1 – 24 of 24) sorted by relevance

/linux/fs/xfs/libxfs/
A Dxfs_btree.c268 switch (cur->bc_ops->type) { in __xfs_btree_check_block()
322 switch (cur->bc_ops->type) { in __xfs_btree_check_ptr()
526 switch (cur->bc_ops->type) { in xfs_btree_del_cursor()
610 cur->bc_ops->buf_ops); in xfs_btree_dup_cursor()
747 (n - 1) * cur->bc_ops->key_len + (cur->bc_ops->key_len / 2); in xfs_btree_high_key_offset()
760 cur->bc_ops->get_maxrecs(cur, level) * cur->bc_ops->key_len + in xfs_btree_ptr_offset()
1000 cur->bc_ops->buf_ops); in xfs_btree_readahead_memblock()
1006 cur->bc_ops->buf_ops); in xfs_btree_readahead_memblock()
1125 cur->bc_ops->buf_ops); in xfs_btree_readahead_ptr()
1410 cur->bc_ops->buf_ops); in xfs_btree_read_buf_block()
[all …]
A Dxfs_btree_staging.c64 ASSERT(cur->bc_ops->type != XFS_BTREE_TYPE_INODE); in xfs_btree_stage_afakeroot()
131 ASSERT(cur->bc_ops->type == XFS_BTREE_TYPE_INODE); in xfs_btree_stage_ifakeroot()
443 return cur->bc_ops->get_dmaxrecs(cur, level); in xfs_btree_bload_max_npb()
445 ret = cur->bc_ops->get_maxrecs(cur, level); in xfs_btree_bload_max_npb()
498 if (cur->bc_ops->get_dmaxrecs) in xfs_btree_bload_level_geometry()
499 maxnr = cur->bc_ops->get_dmaxrecs(cur, level); in xfs_btree_bload_level_geometry()
501 maxnr = cur->bc_ops->get_maxrecs(cur, level); in xfs_btree_bload_level_geometry()
551 maxr = cur->bc_ops->get_maxrecs(cur, level); in xfs_btree_bload_ensure_slack()
552 minr = cur->bc_ops->get_minrecs(cur, level); in xfs_btree_bload_ensure_slack()
661 if (cur->bc_ops->type == XFS_BTREE_TYPE_INODE) in xfs_btree_bload_compute_geometry()
[all …]
A Dxfs_btree.h83 (cur)->bc_ops->statoff + __XBTS_ ## stat)
86 (cur)->bc_ops->statoff + __XBTS_ ## stat, val)
251 const struct xfs_btree_ops *bc_ops; member
534 return cur->bc_ops->diff_two_keys(cur, key1, key2, NULL) < 0; in xfs_btree_keycmp_lt()
543 return cur->bc_ops->diff_two_keys(cur, key1, key2, NULL) > 0; in xfs_btree_keycmp_gt()
552 return cur->bc_ops->diff_two_keys(cur, key1, key2, NULL) == 0; in xfs_btree_keycmp_eq()
590 return cur->bc_ops->diff_two_keys(cur, key1, key2, mask) < 0; in xfs_btree_masked_keycmp_lt()
600 return cur->bc_ops->diff_two_keys(cur, key1, key2, mask) > 0; in xfs_btree_masked_keycmp_gt()
624 if (cur->bc_ops->ptr_len == XFS_BTREE_LONG_PTR_LEN) in xfs_btree_islastblock()
667 cur->bc_ops = ops; in xfs_btree_alloc_cursor()
[all …]
A Dxfs_btree_mem.c29 ASSERT(cur->bc_ops->type == XFS_BTREE_TYPE_MEM); in xfbtree_set_root()
41 ASSERT(cur->bc_ops->type == XFS_BTREE_TYPE_MEM); in xfbtree_init_ptr_from_cur()
53 ASSERT(cur->bc_ops->type == XFS_BTREE_TYPE_MEM); in xfbtree_dup_cursor()
55 ncur = xfs_btree_alloc_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ops, in xfbtree_dup_cursor()
172 ASSERT(cur->bc_ops->type == XFS_BTREE_TYPE_MEM); in xfbtree_alloc_block()
198 ASSERT(cur->bc_ops->type == XFS_BTREE_TYPE_MEM); in xfbtree_free_block()
A Dxfs_ag.c401 xfs_btree_init_buf(mp, bp, id->bc_ops, 0, 0, id->agno); in xfs_btroot_init()
467 xfs_btree_init_buf(mp, bp, id->bc_ops, 0, 0, id->agno); in xfs_bnoroot_init()
483 xfs_btree_init_buf(mp, bp, id->bc_ops, 0, 4, id->agno); in xfs_rmaproot_init()
695 const struct xfs_btree_ops *bc_ops; member
749 .bc_ops = &xfs_bnobt_ops, in xfs_ag_init_headers()
757 .bc_ops = &xfs_cntbt_ops, in xfs_ag_init_headers()
765 .bc_ops = &xfs_inobt_ops, in xfs_ag_init_headers()
773 .bc_ops = &xfs_finobt_ops, in xfs_ag_init_headers()
781 .bc_ops = &xfs_rmapbt_ops, in xfs_ag_init_headers()
789 .bc_ops = &xfs_refcountbt_ops, in xfs_ag_init_headers()
[all …]
A Dxfs_alloc_btree.c54 if (xfs_btree_is_bno(cur->bc_ops)) { in xfs_allocbt_set_root()
183 if (xfs_btree_is_bno(cur->bc_ops)) in xfs_allocbt_init_ptr_from_cur()
546 if (xfs_btree_is_bno(cur->bc_ops)) { in xfs_allocbt_commit_staged_btree()
A Dxfs_ag.h325 const struct xfs_btree_ops *bc_ops; /* btree ops */ member
A Dxfs_ialloc_btree.c93 if (xfs_btree_is_fino(cur->bc_ops)) in xfs_inobt_mod_blockcount()
538 if (xfs_btree_is_ino(cur->bc_ops)) { in xfs_inobt_commit_staged_btree()
A Dxfs_alloc.c278 cur->bc_ops->name, cur->bc_ag.pag->pag_agno, fa); in xfs_alloc_complain_bad_rec()
1022 bool isbnobt = xfs_btree_is_bno(cur->bc_ops); in xfs_alloc_cur_check()
4067 ASSERT(xfs_btree_is_bno(cur->bc_ops)); in xfs_alloc_query_range()
4081 ASSERT(xfs_btree_is_bno(cur->bc_ops)); in xfs_alloc_query_all()
A Dxfs_ialloc.c145 cur->bc_ops->name, cur->bc_ag.pag->pag_agno, fa); in xfs_inobt_complain_bad_rec()
2910 ASSERT(xfs_btree_is_ino(cur->bc_ops)); in xfs_ialloc_count_inodes()
A Dxfs_rmap.c272 if (xfs_btree_is_mem_rmap(cur->bc_ops)) in xfs_rmap_check_btrec()
285 if (xfs_btree_is_mem_rmap(cur->bc_ops)) in xfs_rmap_complain_bad_rec()
/linux/fs/xfs/scrub/
A Dbtree.c50 if (cur->bc_ops->type == XFS_BTREE_TYPE_INODE) in __xchk_btree_process_error()
94 if (cur->bc_ops->type == XFS_BTREE_TYPE_INODE) in __xchk_btree_set_corrupt()
158 memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); in xchk_btree_rec()
165 cur->bc_ops->init_key_from_rec(&key, rec); in xchk_btree_rec()
175 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xchk_btree_rec()
240 if (bs->cur->bc_ops->type == XFS_BTREE_TYPE_INODE && in xchk_btree_ptr_ok()
431 if (cur->bc_ops->type != XFS_BTREE_TYPE_INODE) in xchk_btree_check_owner()
444 if (xfs_btree_is_bno(cur->bc_ops) || xfs_btree_is_rmap(cur->bc_ops)) { in xchk_btree_check_owner()
477 if (xfs_btree_is_bmap(bs->cur->bc_ops) && in xchk_btree_check_iroot_minrecs()
500 if (numrecs >= cur->bc_ops->get_minrecs(cur, level)) in xchk_btree_check_minrecs()
[all …]
A Dtrace.c47 cur->bc_ops->type == XFS_BTREE_TYPE_INODE) in xchk_btree_cur_fsbno()
A Dialloc.c79 ASSERT(xfs_btree_is_fino(cur->bc_ops)); in xchk_inobt_xref_finobt()
182 ASSERT(xfs_btree_is_ino(cur->bc_ops)); in xchk_finobt_xref_inobt()
517 if (xfs_btree_is_fino(bs->cur->bc_ops)) { in xchk_iallocbt_rec_alignment()
A Dhealth.c258 unsigned int mask = (*curp)->bc_ops->sick_mask; in xchk_ag_btree_del_cursor_if_sick()
A Dialloc_repair.c545 cur->bc_ops->init_rec_from_cur(cur, block_rec); in xrep_fibt_get_records()
572 cur->bc_ops->init_rec_from_cur(cur, block_rec); in xrep_ibt_get_records()
A Dnewbt.c547 if (cur->bc_ops->ptr_len == XFS_BTREE_LONG_PTR_LEN) in xrep_newbt_claim_block()
A Drefcount_repair.c538 cur->bc_ops->init_rec_from_cur(cur, block_rec); in xrep_refc_get_records()
A Dalloc_repair.c625 cur->bc_ops->init_rec_from_cur(cur, block_rec); in xrep_abt_get_records()
A Dbmap_repair.c455 cur->bc_ops->init_rec_from_cur(cur, block_rec); in xrep_bmap_get_records()
A Dtrace.h551 __string(name, cur->bc_ops->name)
593 __string(name, cur->bc_ops->name)
636 __string(name, cur->bc_ops->name)
674 __string(name, cur->bc_ops->name)
714 __string(name, cur->bc_ops->name)
A Drmap_repair.c1181 cur->bc_ops->init_rec_from_cur(cur, block_rec); in xrep_rmap_get_records()
/linux/fs/xfs/
A Dxfs_health.c530 switch (cur->bc_ops->type) { in xfs_btree_mark_sick()
535 ASSERT(cur->bc_ops->sick_mask); in xfs_btree_mark_sick()
536 xfs_ag_mark_sick(cur->bc_ag.pag, cur->bc_ops->sick_mask); in xfs_btree_mark_sick()
539 if (xfs_btree_is_bmap(cur->bc_ops)) { in xfs_btree_mark_sick()
A Dxfs_trace.h1906 __string(name, cur->bc_ops->name)
2495 __string(name, cur->bc_ops->name)
2533 __string(name, cur->bc_ops->name)
2539 switch (cur->bc_ops->type) {
2586 __string(name, cur->bc_ops->name)
2840 switch (cur->bc_ops->type) {
2894 switch (cur->bc_ops->type) {
4325 __string(name, cur->bc_ops->name)
4353 __string(name, cur->bc_ops->name)
4390 __string(name, cur->bc_ops->name)
[all …]

Completed in 74 milliseconds