Lines Matching refs:mp
69 xfs_mount_t *mp) in xfs_trans_tail_ail() argument
75 AIL_LOCK(mp,s); in xfs_trans_tail_ail()
76 lip = xfs_ail_min(&(mp->m_ail)); in xfs_trans_tail_ail()
82 AIL_UNLOCK(mp, s); in xfs_trans_tail_ail()
98 xfs_mount_t *mp, in xfs_trans_push_ail() argument
111 AIL_LOCK(mp,s); in xfs_trans_push_ail()
112 lip = xfs_trans_first_ail(mp, &gen); in xfs_trans_push_ail()
113 if (lip == NULL || XFS_FORCED_SHUTDOWN(mp)) { in xfs_trans_push_ail()
117 AIL_UNLOCK(mp, s); in xfs_trans_push_ail()
154 AIL_UNLOCK(mp, s); in xfs_trans_push_ail()
157 AIL_LOCK(mp,s); in xfs_trans_push_ail()
161 AIL_UNLOCK(mp, s); in xfs_trans_push_ail()
170 AIL_LOCK(mp,s); in xfs_trans_push_ail()
191 lip = xfs_trans_next_ail(mp, lip, &gen, &restarts); in xfs_trans_push_ail()
195 if (XFS_FORCED_SHUTDOWN(mp)) { in xfs_trans_push_ail()
199 AIL_UNLOCK(mp, s); in xfs_trans_push_ail()
211 AIL_UNLOCK(mp, s); in xfs_trans_push_ail()
213 xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE); in xfs_trans_push_ail()
214 AIL_LOCK(mp, s); in xfs_trans_push_ail()
217 lip = xfs_ail_min(&(mp->m_ail)); in xfs_trans_push_ail()
224 AIL_UNLOCK(mp, s); in xfs_trans_push_ail()
239 xfs_mount_t *mp, in xfs_trans_unlocked_item() argument
251 XFS_FORCED_SHUTDOWN(mp)) { in xfs_trans_unlocked_item()
267 min_lip = xfs_ail_min(&mp->m_ail); in xfs_trans_unlocked_item()
270 xfs_log_move_tail(mp, 1); in xfs_trans_unlocked_item()
292 xfs_mount_t *mp, in xfs_trans_update_ail() argument
301 ailp = &(mp->m_ail); in xfs_trans_update_ail()
314 mp->m_ail_gen++; in xfs_trans_update_ail()
317 mlip = xfs_ail_min(&(mp->m_ail)); in xfs_trans_update_ail()
318 AIL_UNLOCK(mp, s); in xfs_trans_update_ail()
319 xfs_log_move_tail(mp, mlip->li_lsn); in xfs_trans_update_ail()
321 AIL_UNLOCK(mp, s); in xfs_trans_update_ail()
345 xfs_mount_t *mp, in xfs_trans_delete_ail() argument
354 ailp = &(mp->m_ail); in xfs_trans_delete_ail()
362 mp->m_ail_gen++; in xfs_trans_delete_ail()
365 mlip = xfs_ail_min(&(mp->m_ail)); in xfs_trans_delete_ail()
366 AIL_UNLOCK(mp, s); in xfs_trans_delete_ail()
367 xfs_log_move_tail(mp, (mlip ? mlip->li_lsn : 0)); in xfs_trans_delete_ail()
369 AIL_UNLOCK(mp, s); in xfs_trans_delete_ail()
377 if (XFS_FORCED_SHUTDOWN(mp)) in xfs_trans_delete_ail()
378 AIL_UNLOCK(mp, s); in xfs_trans_delete_ail()
380 xfs_cmn_err(XFS_PTAG_AILDELETE, CE_ALERT, mp, in xfs_trans_delete_ail()
382 xfs_force_shutdown(mp, XFS_CORRUPT_INCORE); in xfs_trans_delete_ail()
383 AIL_UNLOCK(mp, s); in xfs_trans_delete_ail()
397 xfs_mount_t *mp, in xfs_trans_first_ail() argument
402 lip = xfs_ail_min(&(mp->m_ail)); in xfs_trans_first_ail()
403 *gen = (int)mp->m_ail_gen; in xfs_trans_first_ail()
417 xfs_mount_t *mp, in xfs_trans_next_ail() argument
424 ASSERT(mp && lip && gen); in xfs_trans_next_ail()
425 if (mp->m_ail_gen == *gen) { in xfs_trans_next_ail()
426 nlip = xfs_ail_next(&(mp->m_ail), lip); in xfs_trans_next_ail()
428 nlip = xfs_ail_min(&(mp->m_ail)); in xfs_trans_next_ail()
429 *gen = (int)mp->m_ail_gen; in xfs_trans_next_ail()
456 xfs_mount_t *mp) in xfs_trans_ail_init() argument
458 mp->m_ail.ail_forw = (xfs_log_item_t*)&(mp->m_ail); in xfs_trans_ail_init()
459 mp->m_ail.ail_back = (xfs_log_item_t*)&(mp->m_ail); in xfs_trans_ail_init()