Lines Matching refs:tp
328 xfs_trans_t *tp; in xfs_set_dmattrs() local
337 tp = xfs_trans_alloc(mp, XFS_TRANS_SET_DMATTRS); in xfs_set_dmattrs()
338 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_ichange, 0, 0); in xfs_set_dmattrs()
340 xfs_trans_cancel(tp); in xfs_set_dmattrs()
344 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_set_dmattrs()
349 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_set_dmattrs()
350 error = xfs_trans_commit(tp); in xfs_set_dmattrs()
1011 struct xfs_trans *tp, in xfs_ioctl_setattr_xflags() argument
1040 xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_CHG); in xfs_ioctl_setattr_xflags()
1041 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_ioctl_setattr_xflags()
1057 struct xfs_trans *tp; in xfs_ioctl_setattr_get_trans() local
1065 tp = xfs_trans_alloc(mp, XFS_TRANS_SETATTR_NOT_SIZE); in xfs_ioctl_setattr_get_trans()
1066 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_ichange, 0, 0); in xfs_ioctl_setattr_get_trans()
1071 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_ioctl_setattr_get_trans()
1085 xfs_trans_set_sync(tp); in xfs_ioctl_setattr_get_trans()
1087 return tp; in xfs_ioctl_setattr_get_trans()
1090 xfs_trans_cancel(tp); in xfs_ioctl_setattr_get_trans()
1184 struct xfs_trans *tp; in xfs_ioctl_setattr() local
1212 tp = xfs_ioctl_setattr_get_trans(ip); in xfs_ioctl_setattr()
1213 if (IS_ERR(tp)) { in xfs_ioctl_setattr()
1214 code = PTR_ERR(tp); in xfs_ioctl_setattr()
1221 code = xfs_qm_vop_chown_reserve(tp, ip, udqp, NULL, pdqp, in xfs_ioctl_setattr()
1231 code = xfs_ioctl_setattr_xflags(tp, ip, fa); in xfs_ioctl_setattr()
1250 olddquot = xfs_qm_vop_chown(tp, ip, in xfs_ioctl_setattr()
1267 code = xfs_trans_commit(tp); in xfs_ioctl_setattr()
1279 xfs_trans_cancel(tp); in xfs_ioctl_setattr()
1325 struct xfs_trans *tp; in xfs_ioc_setxflags() local
1344 tp = xfs_ioctl_setattr_get_trans(ip); in xfs_ioc_setxflags()
1345 if (IS_ERR(tp)) { in xfs_ioc_setxflags()
1346 error = PTR_ERR(tp); in xfs_ioc_setxflags()
1350 error = xfs_ioctl_setattr_xflags(tp, ip, &fa); in xfs_ioc_setxflags()
1352 xfs_trans_cancel(tp); in xfs_ioc_setxflags()
1356 error = xfs_trans_commit(tp); in xfs_ioc_setxflags()