Lines Matching defs:mp

34 	struct xfs_mount	*mp)
40 res = (struct xfs_trans_res *)M_RES(mp);
41 end_res = (struct xfs_trans_res *)(M_RES(mp) + 1);
43 trace_xfs_trans_resv_calc(mp, i, res);
46 # define xfs_trans_trace_reservations(mp)
55 struct xfs_mount *mp)
57 xfs_trans_resv_calc(mp, M_RES(mp));
58 xfs_trans_trace_reservations(mp);
156 struct xfs_mount *mp = tp->t_mountp;
166 error = xfs_mod_fdblocks(mp, -((int64_t)blocks), rsvd);
193 error = xfs_log_regrant(mp, tp->t_ticket);
195 error = xfs_log_reserve(mp, resp->tr_logres,
213 error = xfs_mod_frextents(mp, -((int64_t)rtextents));
229 xfs_log_ticket_ungrant(mp->m_log, tp->t_ticket);
237 xfs_mod_fdblocks(mp, (int64_t)blocks, rsvd);
245 struct xfs_mount *mp,
264 sb_start_intwrite(mp->m_super);
272 mp->m_super->s_writers.frozen == SB_FREEZE_COMPLETE);
274 xfs_has_lazysbcount(mp));
278 tp->t_mountp = mp;
294 error = xfs_blockgc_flush_all(mp);
329 struct xfs_mount *mp,
334 return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp);
360 xfs_mount_t *mp = tp->t_mountp;
365 if (xfs_has_lazysbcount(mp))
370 if (xfs_has_lazysbcount(mp))
382 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
399 if (xfs_has_lazysbcount(mp))
409 if (xfs_has_lazysbcount(mp))
514 struct xfs_mount *mp = tp->t_mountp;
519 spin_lock(&mp->m_sb_lock);
521 mp->m_sb.sb_frextents += rtxdelta;
522 spin_unlock(&mp->m_sb_lock);
595 struct xfs_mount *mp = tp->t_mountp;
607 (xfs_has_lazysbcount(mp) ||
617 if (xfs_has_lazysbcount(mp) ||
625 error = xfs_mod_fdblocks(mp, blkdelta, rsvd);
630 percpu_counter_add_batch(&mp->m_icount, idelta,
634 percpu_counter_add(&mp->m_ifree, ifreedelta);
637 error = xfs_mod_frextents(mp, rtxdelta);
645 spin_lock(&mp->m_sb_lock);
646 mp->m_sb.sb_fdblocks += tp->t_fdblocks_delta + tp->t_res_fdblocks_delta;
647 mp->m_sb.sb_icount += idelta;
648 mp->m_sb.sb_ifree += ifreedelta;
655 mp->m_sb.sb_dblocks += tp->t_dblocks_delta;
656 mp->m_sb.sb_agcount += tp->t_agcount_delta;
657 mp->m_sb.sb_imax_pct += tp->t_imaxpct_delta;
658 mp->m_sb.sb_rextsize += tp->t_rextsize_delta;
660 mp->m_rtxblklog = log2_if_power2(mp->m_sb.sb_rextsize);
661 mp->m_rtxblkmask = mask64_if_power2(mp->m_sb.sb_rextsize);
663 mp->m_sb.sb_rbmblocks += tp->t_rbmblocks_delta;
664 mp->m_sb.sb_rblocks += tp->t_rblocks_delta;
665 mp->m_sb.sb_rextents += tp->t_rextents_delta;
666 mp->m_sb.sb_rextslog += tp->t_rextslog_delta;
667 spin_unlock(&mp->m_sb_lock);
673 ASSERT(mp->m_sb.sb_imax_pct >= 0);
674 ASSERT(mp->m_sb.sb_rextslog >= 0);
907 struct xfs_mount *mp = tp->t_mountp;
934 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
955 struct xfs_mount *mp = tp->t_mountp;
956 struct xlog *log = mp->m_log;
1026 error = xfs_log_force_seq(mp, commit_seq, XFS_LOG_SYNC, NULL);
1027 XFS_STATS_INC(mp, xs_trans_sync);
1029 XFS_STATS_INC(mp, xs_trans_async);
1053 XFS_STATS_INC(mp, xs_trans_empty);
1084 struct xfs_mount *mp = tp->t_mountp;
1085 struct xlog *log = mp->m_log;
1108 if (dirty && !xfs_is_shutdown(mp)) {
1109 XFS_ERROR_REPORT("xfs_trans_cancel", XFS_ERRLEVEL_LOW, mp);
1110 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
1198 struct xfs_mount *mp = ip->i_mount;
1203 error = xfs_trans_alloc(mp, resv, dblocks,
1204 xfs_extlen_to_rtxlen(mp, rblocks),
1272 struct xfs_mount *mp = ip->i_mount;
1273 unsigned int rtx = xfs_extlen_to_rtxlen(mp, rblocks);
1282 if (!XFS_IS_QUOTA_ON(mp) || xfs_is_quota_inode(&mp->m_sb, ip->i_ino))
1294 xfs_mod_fdblocks(mp, dblocks, tp->t_flags & XFS_TRANS_RESERVE);
1296 xfs_mod_frextents(mp, rtx);
1307 struct xfs_mount *mp,
1320 error = xfs_trans_alloc(mp, resv, dblocks, 0, 0, &tp);
1327 xfs_blockgc_free_dquots(mp, udqp, gdqp, pdqp, 0);
1359 struct xfs_mount *mp = ip->i_mount;
1367 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
1402 error = xfs_trans_reserve_quota_bydquots(tp, mp, udqp, gdqp,
1407 xfs_blockgc_free_dquots(mp, udqp, gdqp, pdqp, 0);
1444 struct xfs_mount *mp = ip->i_mount;
1452 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp);
1456 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp);