Lines Matching refs:tp
160 xfs_trans_t *tp; in xfs_dir_ialloc() local
171 tp = *tpp; in xfs_dir_ialloc()
172 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_dir_ialloc()
189 code = xfs_ialloc(tp, dp, mode, nlink, rdev, credp, prid, okalloc, in xfs_dir_ialloc()
221 xfs_trans_bhold(tp, ialloc_context); in xfs_dir_ialloc()
226 log_res = xfs_trans_get_log_res(tp); in xfs_dir_ialloc()
227 log_count = xfs_trans_get_log_count(tp); in xfs_dir_ialloc()
236 if (tp->t_dqinfo) { in xfs_dir_ialloc()
237 dqinfo = (void *)tp->t_dqinfo; in xfs_dir_ialloc()
238 tp->t_dqinfo = NULL; in xfs_dir_ialloc()
239 tflags = tp->t_flags & XFS_TRANS_DQ_DIRTY; in xfs_dir_ialloc()
240 tp->t_flags &= ~(XFS_TRANS_DQ_DIRTY); in xfs_dir_ialloc()
243 ntp = xfs_trans_dup(tp); in xfs_dir_ialloc()
244 code = xfs_trans_commit(tp, 0, NULL); in xfs_dir_ialloc()
245 tp = ntp; in xfs_dir_ialloc()
257 tp->t_dqinfo = dqinfo; in xfs_dir_ialloc()
258 XFS_TRANS_FREE_DQINFO(tp->t_mountp, tp); in xfs_dir_ialloc()
264 code = xfs_trans_reserve(tp, 0, log_res, 0, in xfs_dir_ialloc()
270 tp->t_dqinfo = dqinfo; in xfs_dir_ialloc()
271 tp->t_flags |= tflags; in xfs_dir_ialloc()
280 xfs_trans_bjoin(tp, ialloc_context); in xfs_dir_ialloc()
287 code = xfs_ialloc(tp, dp, mode, nlink, rdev, credp, prid, in xfs_dir_ialloc()
295 *tpp = tp; in xfs_dir_ialloc()
308 *tpp = tp; in xfs_dir_ialloc()
320 xfs_trans_t *tp, in xfs_droplink() argument
329 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_droplink()
339 error = xfs_iunlink(tp, ip); in xfs_droplink()
353 xfs_trans_t *tp, in xfs_bump_ino_vers2() argument
365 mp = tp->t_mountp; in xfs_bump_ino_vers2()
371 xfs_mod_sb(tp, XFS_SB_VERSIONNUM); in xfs_bump_ino_vers2()
384 xfs_trans_t *tp, in xfs_bumplink() argument
403 xfs_bump_ino_vers2(tp, ip); in xfs_bumplink()
406 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_bumplink()
420 xfs_trans_t *tp; in xfs_truncate_file() local
444 tp = xfs_trans_alloc(mp, XFS_TRANS_TRUNCATE_FILE); in xfs_truncate_file()
445 if ((error = xfs_trans_reserve(tp, 0, XFS_ITRUNCATE_LOG_RES(mp), 0, in xfs_truncate_file()
448 xfs_trans_cancel(tp, 0); in xfs_truncate_file()
459 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_truncate_file()
460 xfs_trans_ihold(tp, ip); in xfs_truncate_file()
472 error = xfs_itruncate_finish(&tp, ip, (xfs_fsize_t)0, in xfs_truncate_file()
478 xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | in xfs_truncate_file()
482 error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, in xfs_truncate_file()