Home
last modified time | relevance | path

Searched refs:bc_tp (Results 1 - 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_rmap_btree.c54 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor()
75 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
91 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_rmapbt_alloc_block()
106 xfs_trans_agbtree_delta(cur->bc_tp, 1); in xfs_rmapbt_alloc_block()
109 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
132 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_free_block()
133 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block()
137 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_rmapbt_free_block()
139 xfs_trans_agbtree_delta(cur->bc_tp, -1); in xfs_rmapbt_free_block()
460 cur->bc_tp in xfs_rmapbt_init_common()
[all...]
H A Dxfs_bmap_btree.c168 new = xfs_bmbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_bmbt_dup_cursor()
185 ASSERT((dst->bc_tp->t_firstblock != NULLFSBLOCK) || in xfs_bmbt_update_cursor()
189 dst->bc_tp->t_firstblock = src->bc_tp->t_firstblock; in xfs_bmbt_update_cursor()
205 args.tp = cur->bc_tp; in xfs_bmbt_alloc_block()
207 args.fsbno = cur->bc_tp->t_firstblock; in xfs_bmbt_alloc_block()
226 } else if (cur->bc_tp->t_flags & XFS_TRANS_LOWMODE) { in xfs_bmbt_alloc_block()
253 cur->bc_tp->t_flags |= XFS_TRANS_LOWMODE; in xfs_bmbt_alloc_block()
261 cur->bc_tp->t_firstblock = args.fsbno; in xfs_bmbt_alloc_block()
284 struct xfs_trans *tp = cur->bc_tp; in xfs_bmbt_free_block()
[all...]
H A Dxfs_alloc_btree.c28 return xfs_allocbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_allocbt_dup_cursor()
50 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
64 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_allocbt_alloc_block()
76 xfs_trans_agbtree_delta(cur->bc_tp, 1); in xfs_allocbt_alloc_block()
94 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
98 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block()
100 xfs_trans_agbtree_delta(cur->bc_tp, -1); in xfs_allocbt_free_block()
162 xfs_alloc_log_agf(cur->bc_tp, cur->bc_ag.agbp, XFS_AGF_LONGEST); in xfs_allocbt_update_lastrec()
485 cur->bc_tp = tp; in xfs_allocbt_init_common()
H A Dxfs_refcount_btree.c28 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor()
48 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
65 args.tp = cur->bc_tp; in xfs_refcountbt_alloc_block()
88 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_alloc_block()
111 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_free_block()
112 error = xfs_free_extent(cur->bc_tp, fsbno, 1, &XFS_RMAP_OINFO_REFC, in xfs_refcountbt_free_block()
327 cur->bc_tp = tp; in xfs_refcountbt_init_common()
H A Dxfs_btree_staging.c140 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_afakeroot()
170 ASSERT(cur->bc_tp == NULL); in xfs_btree_commit_afakeroot()
178 cur->bc_tp = tp; in xfs_btree_commit_afakeroot()
221 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_ifakeroot()
253 ASSERT(cur->bc_tp == NULL); in xfs_btree_commit_ifakeroot()
262 cur->bc_tp = tp; in xfs_btree_commit_ifakeroot()
H A Dxfs_ialloc_btree.c36 return xfs_inobt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_inobt_dup_cursor()
52 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_ROOT | XFS_AGI_LEVEL); in xfs_inobt_set_root()
66 xfs_ialloc_log_agi(cur->bc_tp, agbp, in xfs_finobt_set_root()
86 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_IBLOCKS); in xfs_inobt_mod_blockcount()
102 args.tp = cur->bc_tp; in __xfs_inobt_alloc_block()
158 return xfs_free_extent(cur->bc_tp, in __xfs_inobt_free_block()
436 cur->bc_tp = tp; in xfs_inobt_init_common()
H A Dxfs_btree.c345 xfs_trans_binval(cur->bc_tp, bp); in xfs_btree_free_block()
370 xfs_trans_brelse(cur->bc_tp, cur->bc_bufs[i]); in xfs_btree_del_cursor()
404 tp = cur->bc_tp; in xfs_btree_dup_cursor()
998 xfs_trans_brelse(cur->bc_tp, cur->bc_bufs[lev]); in xfs_btree_setbuf()
1247 error = xfs_trans_get_buf(cur->bc_tp, mp->m_ddev_targp, d, mp->m_bsize, in xfs_btree_get_buf_block()
1279 error = xfs_trans_read_buf(mp, cur->bc_tp, mp->m_ddev_targp, d, in xfs_btree_read_buf_block()
1401 xfs_trans_buf_set_type(cur->bc_tp, bp, XFS_BLFT_BTREE_BUF); in xfs_btree_log_keys()
1402 xfs_trans_log_buf(cur->bc_tp, bp, in xfs_btree_log_keys()
1406 xfs_trans_log_inode(cur->bc_tp, cur->bc_ino.ip, in xfs_btree_log_keys()
1422 xfs_trans_buf_set_type(cur->bc_tp, b in xfs_btree_log_recs()
[all...]
H A Dxfs_refcount.c901 else if (overhead > cur->bc_tp->t_log_res) in xfs_refcount_still_have_space()
903 return cur->bc_tp->t_log_res - overhead > in xfs_refcount_still_have_space()
976 xfs_bmap_add_free(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1021 xfs_bmap_add_free(cur->bc_tp, fsbno, ext.rc_blockcount, in xfs_refcount_adjust_extents()
H A Dxfs_btree.h220 struct xfs_trans *bc_tp; /* transaction we're in, if any */ member
H A Dxfs_bmap.c247 list_for_each_entry(lip, &cur->bc_tp->t_items, li_trans) { in xfs_bmap_get_bp()
626 xfs_bmap_add_free(cur->bc_tp, cbno, 1, &oinfo); in xfs_bmap_btree_to_extents()
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_bmap_btree.c171 new = xfs_bmbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_bmbt_dup_cursor()
188 ASSERT((dst->bc_tp->t_highest_agno != NULLAGNUMBER) || in xfs_bmbt_update_cursor()
192 dst->bc_tp->t_highest_agno = src->bc_tp->t_highest_agno; in xfs_bmbt_update_cursor()
208 args.tp = cur->bc_tp; in xfs_bmbt_alloc_block()
223 if (cur->bc_tp->t_highest_agno == NULLAGNUMBER) in xfs_bmbt_alloc_block()
224 args.minleft = xfs_bmapi_minleft(cur->bc_tp, cur->bc_ino.ip, in xfs_bmbt_alloc_block()
241 cur->bc_tp->t_flags |= XFS_TRANS_LOWMODE; in xfs_bmbt_alloc_block()
268 struct xfs_trans *tp = cur->bc_tp; in xfs_bmbt_free_block()
274 error = xfs_free_extent_later(cur->bc_tp, fsbn in xfs_bmbt_free_block()
[all...]
H A Dxfs_btree_staging.c140 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_afakeroot()
170 ASSERT(cur->bc_tp == NULL); in xfs_btree_commit_afakeroot()
178 cur->bc_tp = tp; in xfs_btree_commit_afakeroot()
221 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_ifakeroot()
253 ASSERT(cur->bc_tp == NULL); in xfs_btree_commit_ifakeroot()
262 cur->bc_tp = tp; in xfs_btree_commit_ifakeroot()
H A Dxfs_refcount_btree.c31 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor()
51 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
68 args.tp = cur->bc_tp; in xfs_refcountbt_alloc_block()
91 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_alloc_block()
113 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_free_block()
114 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in xfs_refcountbt_free_block()
H A Dxfs_rmap_btree.c56 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor()
76 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
93 error = xfs_alloc_get_freelist(pag, cur->bc_tp, cur->bc_ag.agbp, in xfs_rmapbt_alloc_block()
108 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
131 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_free_block()
132 error = xfs_alloc_put_freelist(pag, cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block()
136 xfs_extent_busy_insert(cur->bc_tp, pag, bno, 1, in xfs_rmapbt_free_block()
H A Dxfs_ialloc_btree.c39 return xfs_inobt_init_cursor(cur->bc_ag.pag, cur->bc_tp, in xfs_inobt_dup_cursor()
54 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_ROOT | XFS_AGI_LEVEL); in xfs_inobt_set_root()
68 xfs_ialloc_log_agi(cur->bc_tp, agbp, in xfs_finobt_set_root()
88 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_IBLOCKS); in xfs_inobt_mod_blockcount()
104 args.tp = cur->bc_tp; in __xfs_inobt_alloc_block()
163 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in __xfs_inobt_free_block()
H A Dxfs_alloc_btree.c29 return xfs_allocbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_allocbt_dup_cursor()
49 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
63 error = xfs_alloc_get_freelist(cur->bc_ag.pag, cur->bc_tp, in xfs_allocbt_alloc_block()
92 error = xfs_alloc_put_freelist(cur->bc_ag.pag, cur->bc_tp, agbp, NULL, in xfs_allocbt_free_block()
98 xfs_extent_busy_insert(cur->bc_tp, agbp->b_pag, bno, 1, in xfs_allocbt_free_block()
161 xfs_alloc_log_agf(cur->bc_tp, cur->bc_ag.agbp, XFS_AGF_LONGEST); in xfs_allocbt_update_lastrec()
H A Dxfs_btree.c415 xfs_trans_binval(cur->bc_tp, bp); in xfs_btree_free_block()
440 xfs_trans_brelse(cur->bc_tp, cur->bc_levels[i].bp); in xfs_btree_del_cursor()
476 tp = cur->bc_tp; in xfs_btree_dup_cursor()
1070 xfs_trans_brelse(cur->bc_tp, cur->bc_levels[lev].bp); in xfs_btree_setbuf()
1319 error = xfs_trans_get_buf(cur->bc_tp, mp->m_ddev_targp, d, mp->m_bsize, in xfs_btree_get_buf_block()
1351 error = xfs_trans_read_buf(mp, cur->bc_tp, mp->m_ddev_targp, d, in xfs_btree_read_buf_block()
1473 xfs_trans_buf_set_type(cur->bc_tp, bp, XFS_BLFT_BTREE_BUF); in xfs_btree_log_keys()
1474 xfs_trans_log_buf(cur->bc_tp, bp, in xfs_btree_log_keys()
1478 xfs_trans_log_inode(cur->bc_tp, cur->bc_ino.ip, in xfs_btree_log_keys()
1494 xfs_trans_buf_set_type(cur->bc_tp, b in xfs_btree_log_recs()
[all...]
H A Dxfs_btree.h270 struct xfs_trans *bc_tp; /* transaction we're in, if any */ member
726 cur->bc_tp = tp; in xfs_btree_alloc_cursor()
H A Dxfs_refcount.c1076 else if (overhead > cur->bc_tp->t_log_res) in xfs_refcount_still_have_space()
1078 return cur->bc_tp->t_log_res - overhead > in xfs_refcount_still_have_space()
1154 error = xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1216 error = xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
H A Dxfs_bmap.c248 list_for_each_entry(lip, &cur->bc_tp->t_items, li_trans) { in xfs_bmap_get_bp()
577 error = xfs_free_extent_later(cur->bc_tp, cbno, 1, &oinfo, in xfs_bmap_btree_to_extents()
/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Dialloc.c176 error = xfs_icache_inode_is_allocated(mp, bs->cur->bc_tp, fsino, in xchk_iallocbt_check_cluster_ifree()
281 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &dip, &cluster_bp, 0); in xchk_iallocbt_check_cluster()
302 xfs_trans_brelse(bs->cur->bc_tp, cluster_bp); in xchk_iallocbt_check_cluster()
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_notify_failure.c85 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE, in xfs_dax_failure_fn()
H A Dxfs_fsmap.c388 return xfs_getfsmap_helper(cur->bc_tp, info, rec, rec_daddr, 0); in xfs_getfsmap_datadev_helper()
412 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr, 0); in xfs_getfsmap_datadev_bnobt_helper()
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dialloc.c434 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &cluster_bp); in xchk_iallocbt_check_cluster()
455 xfs_trans_brelse(bs->cur->bc_tp, cluster_bp); in xchk_iallocbt_check_cluster()
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_fsmap.c360 return xfs_getfsmap_helper(cur->bc_tp, info, rec, rec_daddr); in xfs_getfsmap_datadev_helper()
384 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper()

Completed in 42 milliseconds