Lines Matching defs:tail_lsn
88 xfs_lsn_t tail_lsn);
702 xfs_lsn_t tail_lsn)
711 if (tail_lsn == 0) {
714 tail_lsn = log->l_last_sync_lsn;
721 * tail_lsn.
723 if (tail_lsn != 1) {
724 log->l_tail_lsn = tail_lsn;
738 if (free_bytes < tic->t_unit_res && tail_lsn != 1)
740 tail_lsn = 0;
759 if (free_bytes < need_bytes && tail_lsn != 1)
761 tail_lsn = 0;
825 * to disk. The lsn of this LR will become the new tail_lsn whenever
836 xfs_lsn_t tail_lsn;
839 tail_lsn = xfs_trans_ail_tail(mp->m_ail);
841 if (tail_lsn != 0) {
842 log->l_tail_lsn = tail_lsn;
844 tail_lsn = log->l_tail_lsn = log->l_last_sync_lsn;
848 return tail_lsn;
1242 xfs_lsn_t tail_lsn; /* lsn of the log tail */
1256 tail_lsn = log->l_tail_lsn;
1268 threshold_block = BLOCK_LSN(tail_lsn) + free_threshold;
1269 threshold_cycle = CYCLE_LSN(tail_lsn);
2550 xfs_lsn_t tail_lsn;
2623 tail_lsn = log->l_tail_lsn;
2630 if (CYCLE_LSN(tail_lsn) != log->l_grant_write_cycle) {
2631 ASSERT(log->l_grant_write_cycle-1 == CYCLE_LSN(tail_lsn));
2632 ASSERT(log->l_grant_write_bytes <= BBTOB(BLOCK_LSN(tail_lsn)));
2670 xfs_lsn_t tail_lsn;
2766 tail_lsn = log->l_tail_lsn;
2767 if (CYCLE_LSN(tail_lsn) != log->l_grant_write_cycle) {
2768 ASSERT(log->l_grant_write_cycle-1 == CYCLE_LSN(tail_lsn));
2769 ASSERT(log->l_grant_write_bytes <= BBTOB(BLOCK_LSN(tail_lsn)));
3516 xfs_lsn_t tail_lsn)
3520 if (CYCLE_LSN(tail_lsn) == log->l_prev_cycle) {
3522 log->l_logBBsize - (log->l_prev_block - BLOCK_LSN(tail_lsn));
3526 ASSERT(CYCLE_LSN(tail_lsn)+1 == log->l_prev_cycle);
3528 if (BLOCK_LSN(tail_lsn) == log->l_prev_block)
3531 blocks = BLOCK_LSN(tail_lsn) - log->l_prev_block;