Lines Matching refs:tp
698 struct xfs_trans *tp; in xfs_growfs_rt_fixup_extsize() local
707 &tp); in xfs_growfs_rt_fixup_extsize()
711 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_growfs_rt_fixup_extsize()
712 error = xfs_trans_commit(tp); in xfs_growfs_rt_fixup_extsize()
726 struct xfs_trans *tp; in xfs_rtginode_ensure() local
732 tp = xfs_trans_alloc_empty(rtg_mount(rtg)); in xfs_rtginode_ensure()
733 error = xfs_rtginode_load(rtg, type, tp); in xfs_rtginode_ensure()
734 xfs_trans_cancel(tp); in xfs_rtginode_ensure()
856 error = xfs_rtrmapbt_init_rtsb(nargs->mp, args->rtg, args->tp); in xfs_growfs_rt_init_rtsb()
863 struct xfs_trans *tp, in xfs_growfs_rt_sb_fields() argument
866 struct xfs_mount *mp = tp->t_mountp; in xfs_growfs_rt_sb_fields()
869 xfs_trans_mod_sb(tp, XFS_TRANS_SB_REXTSIZE, in xfs_growfs_rt_sb_fields()
872 xfs_trans_mod_sb(tp, XFS_TRANS_SB_RBMBLOCKS, in xfs_growfs_rt_sb_fields()
875 xfs_trans_mod_sb(tp, XFS_TRANS_SB_RBLOCKS, in xfs_growfs_rt_sb_fields()
878 xfs_trans_mod_sb(tp, XFS_TRANS_SB_REXTENTS, in xfs_growfs_rt_sb_fields()
881 xfs_trans_mod_sb(tp, XFS_TRANS_SB_REXTSLOG, in xfs_growfs_rt_sb_fields()
884 xfs_trans_mod_sb(tp, XFS_TRANS_SB_RGCOUNT, in xfs_growfs_rt_sb_fields()
895 struct xfs_trans *tp; in xfs_growfs_rt_zoned() local
912 error = xfs_trans_alloc(mp, &M_RES(nmp)->tr_growrtfree, 0, 0, 0, &tp); in xfs_growfs_rt_zoned()
917 xfs_rtgroup_trans_join(tp, rtg, XFS_RTGLOCK_RMAP); in xfs_growfs_rt_zoned()
919 xfs_growfs_rt_sb_fields(tp, nmp); in xfs_growfs_rt_zoned()
920 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FREXTENTS, freed_rtx); in xfs_growfs_rt_zoned()
922 error = xfs_trans_commit(tp); in xfs_growfs_rt_zoned()
979 &args.tp); in xfs_growfs_rt_bmblock()
982 nargs.tp = args.tp; in xfs_growfs_rt_bmblock()
985 xfs_rtgroup_trans_join(args.tp, args.rtg, in xfs_growfs_rt_bmblock()
995 xfs_trans_log_inode(args.tp, rbmip, XFS_ILOG_CORE); in xfs_growfs_rt_bmblock()
1004 xfs_trans_log_inode(args.tp, rsumip, XFS_ILOG_CORE); in xfs_growfs_rt_bmblock()
1024 xfs_growfs_rt_sb_fields(args.tp, nmp); in xfs_growfs_rt_bmblock()
1037 xfs_trans_mod_sb(args.tp, XFS_TRANS_SB_FREXTENTS, freed_rtx); in xfs_growfs_rt_bmblock()
1050 error = xfs_trans_commit(args.tp); in xfs_growfs_rt_bmblock()
1066 xfs_trans_cancel(args.tp); in xfs_growfs_rt_bmblock()
1304 struct xfs_trans *tp; in xfs_growfs_rt_prep_groups() local
1306 tp = xfs_trans_alloc_empty(mp); in xfs_growfs_rt_prep_groups()
1307 error = xfs_rtginode_load_parent(tp); in xfs_growfs_rt_prep_groups()
1308 xfs_trans_cancel(tp); in xfs_growfs_rt_prep_groups()
1565 struct xfs_trans *tp, in xfs_rtalloc_count_frextent() argument
1613 struct xfs_trans *tp, in xfs_rtmount_iread_extents() argument
1620 error = xfs_iread_extents(tp, ip, XFS_DATA_FORK); in xfs_rtmount_iread_extents()
1625 error = xfs_iread_extents(tp, ip, XFS_ATTR_FORK); in xfs_rtmount_iread_extents()
1638 struct xfs_trans *tp, in xfs_rtmount_rtg() argument
1644 error = xfs_rtginode_load(rtg, i, tp); in xfs_rtmount_rtg()
1649 error = xfs_rtmount_iread_extents(tp, in xfs_rtmount_rtg()
1669 struct xfs_trans *tp; in xfs_rtmount_inodes() local
1673 tp = xfs_trans_alloc_empty(mp); in xfs_rtmount_inodes()
1675 error = xfs_rtginode_load_parent(tp); in xfs_rtmount_inodes()
1681 error = xfs_rtmount_rtg(mp, tp, rtg); in xfs_rtmount_inodes()
1690 xfs_trans_cancel(tp); in xfs_rtmount_inodes()
1715 struct xfs_trans *tp, in xfs_rtpick_extent() argument
1747 xfs_trans_log_inode(tp, rbmip, XFS_ILOG_CORE); in xfs_rtpick_extent()
1871 error = xfs_extent_busy_flush(args->tp, rtg_group(args->rtg), in xfs_rtallocate_adjust_for_busy()
1890 struct xfs_trans *tp, in xfs_rtallocate_rtg() argument
1903 .mp = tp->t_mountp, in xfs_rtallocate_rtg()
1904 .tp = tp, in xfs_rtallocate_rtg()
1936 xfs_rtgroup_trans_join(tp, args.rtg, in xfs_rtallocate_rtg()
1948 start = xfs_rtpick_extent(args.rtg, tp, maxlen); in xfs_rtallocate_rtg()
1980 xfs_rtgroup_trans_join(tp, args.rtg, XFS_RTGLOCK_BITMAP); in xfs_rtallocate_rtg()
1987 xfs_trans_mod_sb(tp, wasdel ? in xfs_rtallocate_rtg()
2005 struct xfs_trans *tp, in xfs_rtallocate_rtgs() argument
2015 struct xfs_mount *mp = tp->t_mountp; in xfs_rtallocate_rtgs()
2035 error = xfs_rtallocate_rtg(tp, rgno, bno_hint, minlen, maxlen, in xfs_rtallocate_rtgs()
2139 ASSERT(!xfs_has_zoned(ap->tp->t_mountp)); in xfs_bmap_rtalloc()
2150 error = xfs_rtallocate_rtgs(ap->tp, bno_hint, raminlen, ralen, in xfs_bmap_rtalloc()
2154 error = xfs_rtallocate_rtg(ap->tp, 0, bno_hint, raminlen, ralen, in xfs_bmap_rtalloc()