Lines Matching refs:tp

132 	struct xfs_trans	*tp,  in xfs_inobt_insert()  argument
145 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
221 struct xfs_trans *tp, in xfs_ialloc_inode_init() argument
277 if (tp) in xfs_ialloc_inode_init()
278 xfs_icreate_log(tp, agno, agbno, mp->m_ialloc_inos, in xfs_ialloc_inode_init()
288 fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_ialloc_inode_init()
312 } else if (tp) { in xfs_ialloc_inode_init()
314 xfs_trans_log_buf(tp, fbuf, ioffset, in xfs_ialloc_inode_init()
319 if (tp) { in xfs_ialloc_inode_init()
328 xfs_trans_inode_alloc_buf(tp, fbuf); in xfs_ialloc_inode_init()
336 xfs_trans_ordered_buf(tp, fbuf); in xfs_ialloc_inode_init()
337 xfs_trans_log_buf(tp, fbuf, 0, in xfs_ialloc_inode_init()
355 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_ag_alloc() argument
370 args.tp = tp; in xfs_ialloc_ag_alloc()
371 args.mp = tp->t_mountp; in xfs_ialloc_ag_alloc()
498 error = xfs_ialloc_inode_init(args.mp, tp, NULL, agno, args.agbno, in xfs_ialloc_ag_alloc()
517 error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen, in xfs_ialloc_ag_alloc()
523 error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen, in xfs_ialloc_ag_alloc()
531 xfs_ialloc_log_agi(tp, agbp, in xfs_ialloc_ag_alloc()
536 xfs_trans_mod_sb(tp, XFS_TRANS_SB_ICOUNT, (long)newlen); in xfs_ialloc_ag_alloc()
537 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, (long)newlen); in xfs_ialloc_ag_alloc()
563 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_ag_select() argument
584 mp = tp->t_mountp; in xfs_ialloc_ag_select()
613 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_ialloc_ag_select()
627 error = xfs_alloc_pagf_init(mp, tp, agno, flags); in xfs_ialloc_ag_select()
739 struct xfs_trans *tp, in xfs_dialloc_ag_inobt() argument
744 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc_ag_inobt()
764 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag_inobt()
976 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_FREECOUNT); in xfs_dialloc_ag_inobt()
984 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, -1); in xfs_dialloc_ag_inobt()
1164 struct xfs_trans *tp, in xfs_dialloc_ag() argument
1169 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc_ag()
1184 return xfs_dialloc_ag_inobt(tp, agbp, parent, inop); in xfs_dialloc_ag()
1195 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_dialloc_ag()
1238 icur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag()
1253 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_FREECOUNT); in xfs_dialloc_ag()
1256 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, -1); in xfs_dialloc_ag()
1302 struct xfs_trans *tp, in xfs_dialloc() argument
1309 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc()
1332 start_agno = xfs_ialloc_ag_select(tp, parent, mode, okalloc); in xfs_dialloc()
1367 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_dialloc()
1382 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_dialloc()
1395 error = xfs_ialloc_ag_alloc(tp, agbp, &ialloced); in xfs_dialloc()
1397 xfs_trans_brelse(tp, agbp); in xfs_dialloc()
1423 xfs_trans_brelse(tp, agbp); in xfs_dialloc()
1436 return xfs_dialloc_ag(tp, agbp, parent, inop); in xfs_dialloc()
1445 struct xfs_trans *tp, in xfs_difree_inobt() argument
1469 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_difree_inobt()
1520 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_COUNT | XFS_AGI_FREECOUNT); in xfs_difree_inobt()
1524 xfs_trans_mod_sb(tp, XFS_TRANS_SB_ICOUNT, -ilen); in xfs_difree_inobt()
1525 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, -(ilen - 1)); in xfs_difree_inobt()
1550 xfs_ialloc_log_agi(tp, agbp, XFS_AGI_FREECOUNT); in xfs_difree_inobt()
1554 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, 1); in xfs_difree_inobt()
1576 struct xfs_trans *tp, in xfs_difree_finobt() argument
1589 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_difree_finobt()
1671 struct xfs_trans *tp, /* transaction pointer */ in xfs_difree() argument
1686 mp = tp->t_mountp; in xfs_difree()
1716 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_difree()
1726 error = xfs_difree_inobt(mp, tp, agbp, agino, flist, deleted, first_ino, in xfs_difree()
1735 error = xfs_difree_finobt(mp, tp, agbp, agino, &rec); in xfs_difree()
1749 struct xfs_trans *tp, in xfs_imap_lookup() argument
1763 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_imap_lookup()
1777 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_imap_lookup()
1786 xfs_trans_brelse(tp, agbp); in xfs_imap_lookup()
1812 xfs_trans_t *tp, /* transaction pointer */ in xfs_imap() argument
1876 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
1906 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
1978 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_log_agi() argument
2008 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_AGI_BUF); in xfs_ialloc_log_agi()
2018 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2029 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2130 struct xfs_trans *tp, /* transaction pointer */ in xfs_read_agi() argument
2139 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_read_agi()
2152 struct xfs_trans *tp, /* transaction pointer */ in xfs_ialloc_read_agi() argument
2162 error = xfs_read_agi(mp, tp, agno, bpp); in xfs_ialloc_read_agi()
2190 xfs_trans_t *tp, /* transaction pointer */ in xfs_ialloc_pagi_init() argument
2196 error = xfs_ialloc_read_agi(mp, tp, agno, &bp); in xfs_ialloc_pagi_init()
2200 xfs_trans_brelse(tp, bp); in xfs_ialloc_pagi_init()