Home
last modified time | relevance | path

Searched refs:head_cycle (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_log_recover.c1611 int tail_cycle, head_cycle; in xlog_clear_stale_blocks() local
1619 head_cycle = log->l_curr_cycle; in xlog_clear_stale_blocks()
1628 if (head_cycle == tail_cycle) { in xlog_clear_stale_blocks()
1649 head_cycle != tail_cycle + 1)) in xlog_clear_stale_blocks()
1681 error = xlog_write_log_records(log, (head_cycle - 1), in xlog_clear_stale_blocks()
1695 error = xlog_write_log_records(log, (head_cycle - 1), in xlog_clear_stale_blocks()
1711 error = xlog_write_log_records(log, head_cycle, 0, distance, in xlog_clear_stale_blocks()
H A Dxfs_log.c1340 int head_cycle; in xlog_space_left() local
1343 xlog_crack_grant_head(head, &head_cycle, &head_bytes); in xlog_space_left()
1346 if (tail_cycle == head_cycle && head_bytes >= tail_bytes) in xlog_space_left()
1348 if (tail_cycle + 1 < head_cycle) in xlog_space_left()
1355 if (tail_cycle < head_cycle) { in xlog_space_left()
1356 ASSERT(tail_cycle == (head_cycle - 1)); in xlog_space_left()
1368 head_cycle, head_bytes); in xlog_space_left()
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_log.c1157 int head_cycle; in xlog_space_left() local
1160 xlog_crack_grant_head(head, &head_cycle, &head_bytes); in xlog_space_left()
1163 if (tail_cycle == head_cycle && head_bytes >= tail_bytes) in xlog_space_left()
1165 else if (tail_cycle + 1 < head_cycle) in xlog_space_left()
1167 else if (tail_cycle < head_cycle) { in xlog_space_left()
1168 ASSERT(tail_cycle == (head_cycle - 1)); in xlog_space_left()
1182 head_cycle, head_bytes); in xlog_space_left()
H A Dxfs_log_recover.c1617 int tail_cycle, head_cycle; in xlog_clear_stale_blocks() local
1625 head_cycle = log->l_curr_cycle; in xlog_clear_stale_blocks()
1634 if (head_cycle == tail_cycle) { in xlog_clear_stale_blocks()
1655 head_cycle != tail_cycle + 1)) in xlog_clear_stale_blocks()
1687 error = xlog_write_log_records(log, (head_cycle - 1), in xlog_clear_stale_blocks()
1701 error = xlog_write_log_records(log, (head_cycle - 1), in xlog_clear_stale_blocks()
1717 error = xlog_write_log_records(log, head_cycle, 0, distance, in xlog_clear_stale_blocks()

Completed in 17 milliseconds