/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_refcount.c | 34 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur, 36 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur, 1111 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() 1116 if (rcur == NULL) in xfs_refcount_finish_one_cleanup() 1118 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup() 1119 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup() 1142 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local 1167 rcur = *pcur; in xfs_refcount_finish_one() 1168 if (rcur != NULL && rcur in xfs_refcount_finish_one() 1109 xfs_refcount_finish_one_cleanup( struct xfs_trans *tp, struct xfs_btree_cur *rcur, int error) xfs_refcount_finish_one_cleanup() argument 1587 __xfs_refcount_cow_alloc( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_alloc() argument 1604 __xfs_refcount_cow_free( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_free() argument [all...] |
H A D | xfs_rmap.c | 100 struct xfs_btree_cur *rcur, in xfs_rmap_insert() 110 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.agno, agbno, in xfs_rmap_insert() 113 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert() 116 if (XFS_IS_CORRUPT(rcur->bc_mp, i != 0)) { in xfs_rmap_insert() 121 rcur->bc_rec.r.rm_startblock = agbno; in xfs_rmap_insert() 122 rcur->bc_rec.r.rm_blockcount = len; in xfs_rmap_insert() 123 rcur->bc_rec.r.rm_owner = owner; in xfs_rmap_insert() 124 rcur->bc_rec.r.rm_offset = offset; in xfs_rmap_insert() 125 rcur in xfs_rmap_insert() 99 xfs_rmap_insert( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) xfs_rmap_insert() argument 141 xfs_rmap_delete( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) xfs_rmap_delete() argument 2330 xfs_rmap_finish_one_cleanup( struct xfs_trans *tp, struct xfs_btree_cur *rcur, int error) xfs_rmap_finish_one_cleanup() argument 2365 struct xfs_btree_cur *rcur; xfs_rmap_finish_one() local [all...] |
H A D | xfs_rmap.h | 128 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno, 178 struct xfs_btree_cur *rcur, int error);
|
H A D | xfs_refcount.h | 38 struct xfs_btree_cur *rcur, int error);
|
H A D | xfs_ialloc.c | 1404 struct xfs_btree_cur *rcur; /* right search cursor */ in xfs_dialloc_ag_finobt_near() local 1430 error = xfs_btree_dup_cursor(lcur, &rcur); in xfs_dialloc_ag_finobt_near() 1434 error = xfs_inobt_lookup(rcur, pagino, XFS_LOOKUP_GE, &j); in xfs_dialloc_ag_finobt_near() 1438 error = xfs_inobt_get_rec(rcur, &rrec, &j); in xfs_dialloc_ag_finobt_near() 1460 *ocur = rcur; in xfs_dialloc_ag_finobt_near() 1462 xfs_btree_del_cursor(rcur, XFS_BTREE_NOERROR); in xfs_dialloc_ag_finobt_near() 1468 *ocur = rcur; in xfs_dialloc_ag_finobt_near() 1471 xfs_btree_del_cursor(rcur, XFS_BTREE_NOERROR); in xfs_dialloc_ag_finobt_near() 1477 xfs_btree_del_cursor(rcur, XFS_BTREE_ERROR); in xfs_dialloc_ag_finobt_near()
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_rmap.c | 118 struct xfs_btree_cur *rcur, in xfs_rmap_insert() 128 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, in xfs_rmap_insert() 131 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert() 134 if (XFS_IS_CORRUPT(rcur->bc_mp, i != 0)) { in xfs_rmap_insert() 139 rcur->bc_rec.r.rm_startblock = agbno; in xfs_rmap_insert() 140 rcur->bc_rec.r.rm_blockcount = len; in xfs_rmap_insert() 141 rcur->bc_rec.r.rm_owner = owner; in xfs_rmap_insert() 142 rcur->bc_rec.r.rm_offset = offset; in xfs_rmap_insert() 143 rcur in xfs_rmap_insert() 117 xfs_rmap_insert( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) xfs_rmap_insert() argument 159 xfs_rmap_delete( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) xfs_rmap_delete() argument 2416 xfs_rmap_finish_one_cleanup( struct xfs_trans *tp, struct xfs_btree_cur *rcur, int error) xfs_rmap_finish_one_cleanup() argument 2445 struct xfs_btree_cur *rcur; xfs_rmap_finish_one() local [all...] |
H A D | xfs_refcount.c | 37 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur, 39 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur, 1305 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() 1310 if (rcur == NULL) in xfs_refcount_finish_one_cleanup() 1312 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup() 1313 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup() 1357 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local 1377 rcur = *pcur; in xfs_refcount_finish_one() 1378 if (rcur != NULL && rcur in xfs_refcount_finish_one() 1303 xfs_refcount_finish_one_cleanup( struct xfs_trans *tp, struct xfs_btree_cur *rcur, int error) xfs_refcount_finish_one_cleanup() argument 1811 __xfs_refcount_cow_alloc( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_alloc() argument 1828 __xfs_refcount_cow_free( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_free() argument [all...] |
H A D | xfs_rmap.h | 131 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno, 186 struct xfs_btree_cur *rcur, int error);
|
H A D | xfs_refcount.h | 80 struct xfs_btree_cur *rcur, int error);
|
H A D | xfs_ialloc.c | 1282 struct xfs_btree_cur *rcur; /* right search cursor */ in xfs_dialloc_ag_finobt_near() local 1308 error = xfs_btree_dup_cursor(lcur, &rcur); in xfs_dialloc_ag_finobt_near() 1312 error = xfs_inobt_lookup(rcur, pagino, XFS_LOOKUP_GE, &j); in xfs_dialloc_ag_finobt_near() 1316 error = xfs_inobt_get_rec(rcur, &rrec, &j); in xfs_dialloc_ag_finobt_near() 1338 *ocur = rcur; in xfs_dialloc_ag_finobt_near() 1340 xfs_btree_del_cursor(rcur, XFS_BTREE_NOERROR); in xfs_dialloc_ag_finobt_near() 1346 *ocur = rcur; in xfs_dialloc_ag_finobt_near() 1349 xfs_btree_del_cursor(rcur, XFS_BTREE_NOERROR); in xfs_dialloc_ag_finobt_near() 1355 xfs_btree_del_cursor(rcur, XFS_BTREE_ERROR); in xfs_dialloc_ag_finobt_near()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_refcount_item.c | 434 struct xfs_btree_cur *rcur = NULL; in xfs_cui_item_recover() local 514 &new_fsb, &new_len, &rcur); in xfs_cui_item_recover() 546 xfs_refcount_finish_one_cleanup(tp, rcur, error); in xfs_cui_item_recover() 550 xfs_refcount_finish_one_cleanup(tp, rcur, error); in xfs_cui_item_recover()
|
H A D | xfs_rmap_item.c | 476 struct xfs_btree_cur *rcur = NULL; in xfs_rui_item_recover() local 563 rmap->me_len, state, &rcur); in xfs_rui_item_recover() 569 xfs_rmap_finish_one_cleanup(tp, rcur, error); in xfs_rui_item_recover() 573 xfs_rmap_finish_one_cleanup(tp, rcur, error); in xfs_rui_item_recover()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_refcount_item.c | 484 struct xfs_btree_cur *rcur = NULL; in xfs_cui_item_recover() local 553 &fake, &rcur); in xfs_cui_item_recover() 594 xfs_refcount_finish_one_cleanup(tp, rcur, error); in xfs_cui_item_recover() 598 xfs_refcount_finish_one_cleanup(tp, rcur, error); in xfs_cui_item_recover()
|
H A D | xfs_rmap_item.c | 514 struct xfs_btree_cur *rcur = NULL; in xfs_rui_item_recover() local 590 &rcur); in xfs_rui_item_recover() 600 xfs_rmap_finish_one_cleanup(tp, rcur, error); in xfs_rui_item_recover() 604 xfs_rmap_finish_one_cleanup(tp, rcur, error); in xfs_rui_item_recover()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | verifier.c | 9401 /* Returns true if (rold safe implies rcur safe) */ 9403 struct bpf_reg_state *rcur, struct bpf_id_pair *idmap) in regsafe() 9411 equal = memcmp(rold, rcur, offsetof(struct bpf_reg_state, parent)) == 0; in regsafe() 9417 return equal && rold->frameno == rcur->frameno; in regsafe() 9425 if (rcur->type == NOT_INIT) in regsafe() 9431 if (rcur->type == SCALAR_VALUE) { in regsafe() 9435 return range_within(rold, rcur) && in regsafe() 9436 tnum_in(rold->var_off, rcur->var_off); in regsafe() 9456 if (!type_may_be_null(rcur->type)) in regsafe() 9458 if (memcmp(rold, rcur, offseto in regsafe() 9402 regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct bpf_id_pair *idmap) regsafe() argument [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | verifier.c | 7777 const struct bpf_reg_state *rcur, 7781 struct bpf_reg_state *rold, struct bpf_reg_state *rcur, in maybe_widen_reg() 7786 if (rold->type != rcur->type) in maybe_widen_reg() 7788 if (rold->precise || rcur->precise || regs_exact(rold, rcur, idmap)) in maybe_widen_reg() 7790 __mark_reg_unknown(env, rcur); in maybe_widen_reg() 15956 const struct bpf_reg_state *rcur, in regs_exact() 15959 return memcmp(rold, rcur, offsetof(struct bpf_reg_state, id)) == 0 && in regs_exact() 15960 check_ids(rold->id, rcur->id, idmap) && in regs_exact() 15961 check_ids(rold->ref_obj_id, rcur in regs_exact() 7780 maybe_widen_reg(struct bpf_verifier_env *env, struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct bpf_idmap *idmap) maybe_widen_reg() argument 15955 regs_exact(const struct bpf_reg_state *rold, const struct bpf_reg_state *rcur, struct bpf_idmap *idmap) regs_exact() argument 15965 regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct bpf_idmap *idmap, bool exact) regsafe() argument [all...] |