Lines Matching refs:tp

161 	struct xfs_trans	*tp,  in xfs_inobt_insert()  argument
174 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
252 struct xfs_trans *tp, in xfs_ialloc_inode_init() argument
309 if (tp) in xfs_ialloc_inode_init()
310 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
320 fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_ialloc_inode_init()
345 } else if (tp) { in xfs_ialloc_inode_init()
347 xfs_trans_log_buf(tp, fbuf, ioffset, in xfs_ialloc_inode_init()
352 if (tp) { in xfs_ialloc_inode_init()
361 xfs_trans_inode_alloc_buf(tp, fbuf); in xfs_ialloc_inode_init()
369 xfs_trans_ordered_buf(tp, fbuf); in xfs_ialloc_inode_init()
370 xfs_trans_log_buf(tp, fbuf, 0, in xfs_ialloc_inode_init()
512 struct xfs_trans *tp, in xfs_inobt_insert_sprec() argument
525 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
596 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_ag_alloc() argument
614 args.tp = tp; in xfs_ialloc_ag_alloc()
615 args.mp = tp->t_mountp; in xfs_ialloc_ag_alloc()
620 if (xfs_sb_version_hassparseinodes(&tp->t_mountp->m_sb) && in xfs_ialloc_ag_alloc()
792 error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, agno, in xfs_ialloc_ag_alloc()
819 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, XFS_BTNUM_INO, in xfs_ialloc_ag_alloc()
844 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, in xfs_ialloc_ag_alloc()
852 error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen, in xfs_ialloc_ag_alloc()
858 error = xfs_inobt_insert(args.mp, tp, agbp, newino, in xfs_ialloc_ag_alloc()
878 xfs_ialloc_log_agi(tp, agbp, in xfs_ialloc_ag_alloc()
883 xfs_trans_mod_sb(tp, XFS_TRANS_SB_ICOUNT, (long)newlen); in xfs_ialloc_ag_alloc()
884 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, (long)newlen); in xfs_ialloc_ag_alloc()
910 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_ag_select() argument
931 mp = tp->t_mountp; in xfs_ialloc_ag_select()
960 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_ialloc_ag_select()
974 error = xfs_alloc_pagf_init(mp, tp, agno, flags); in xfs_ialloc_ag_select()
1107 struct xfs_trans *tp, in xfs_dialloc_ag_inobt() argument
1112 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc_ag_inobt()
1132 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag_inobt()
1344 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_FREECOUNT); in xfs_dialloc_ag_inobt()
1352 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, -1); in xfs_dialloc_ag_inobt()
1532 struct xfs_trans *tp, in xfs_dialloc_ag() argument
1537 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc_ag()
1552 return xfs_dialloc_ag_inobt(tp, agbp, parent, inop); in xfs_dialloc_ag()
1563 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_dialloc_ag()
1606 icur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag()
1621 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_FREECOUNT); in xfs_dialloc_ag()
1624 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, -1); in xfs_dialloc_ag()
1670 struct xfs_trans *tp, in xfs_dialloc() argument
1677 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc()
1700 start_agno = xfs_ialloc_ag_select(tp, parent, mode, okalloc); in xfs_dialloc()
1735 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_dialloc()
1750 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_dialloc()
1763 error = xfs_ialloc_ag_alloc(tp, agbp, &ialloced); in xfs_dialloc()
1765 xfs_trans_brelse(tp, agbp); in xfs_dialloc()
1791 xfs_trans_brelse(tp, agbp); in xfs_dialloc()
1804 return xfs_dialloc_ag(tp, agbp, parent, inop); in xfs_dialloc()
1890 struct xfs_trans *tp, in xfs_difree_inobt() argument
1913 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_difree_inobt()
1967 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_COUNT | XFS_AGI_FREECOUNT); in xfs_difree_inobt()
1971 xfs_trans_mod_sb(tp, XFS_TRANS_SB_ICOUNT, -ilen); in xfs_difree_inobt()
1972 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, -(ilen - 1)); in xfs_difree_inobt()
1995 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_FREECOUNT); in xfs_difree_inobt()
1999 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, 1); in xfs_difree_inobt()
2021 struct xfs_trans *tp, in xfs_difree_finobt() argument
2034 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_difree_finobt()
2123 struct xfs_trans *tp, /* transaction pointer */ in xfs_difree() argument
2137 mp = tp->t_mountp; in xfs_difree()
2167 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_difree()
2177 error = xfs_difree_inobt(mp, tp, agbp, agino, flist, xic, &rec); in xfs_difree()
2185 error = xfs_difree_finobt(mp, tp, agbp, agino, &rec); in xfs_difree()
2199 struct xfs_trans *tp, in xfs_imap_lookup() argument
2213 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_imap_lookup()
2227 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_imap_lookup()
2236 xfs_trans_brelse(tp, agbp); in xfs_imap_lookup()
2262 xfs_trans_t *tp, /* transaction pointer */ in xfs_imap() argument
2326 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
2356 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
2428 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_log_agi() argument
2458 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_AGI_BUF); in xfs_ialloc_log_agi()
2468 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2479 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2586 struct xfs_trans *tp, /* transaction pointer */ in xfs_read_agi() argument
2595 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_read_agi()
2608 struct xfs_trans *tp, /* transaction pointer */ in xfs_ialloc_read_agi() argument
2618 error = xfs_read_agi(mp, tp, agno, bpp); in xfs_ialloc_read_agi()
2646 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_pagi_init() argument
2652 error = xfs_ialloc_read_agi(mp, tp, agno, &bp); in xfs_ialloc_pagi_init()
2656 xfs_trans_brelse(tp, bp); in xfs_ialloc_pagi_init()