Home
last modified time | relevance | path

Searched refs:cycle (Results 1 – 5 of 5) sorted by relevance

/fs/xfs/
Dxfs_log_priv.h496 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
500 *cycle = CYCLE_LSN(val); in xlog_crack_atomic_lsn()
508 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
510 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
519 xlog_crack_grant_head_val(int64_t val, int *cycle, int *space) in xlog_crack_grant_head_val() argument
521 *cycle = val >> 32; in xlog_crack_grant_head_val()
526 xlog_crack_grant_head(atomic64_t *head, int *cycle, int *space) in xlog_crack_grant_head() argument
528 xlog_crack_grant_head_val(atomic64_read(head), cycle, space); in xlog_crack_grant_head()
532 xlog_assign_grant_head_val(int cycle, int space) in xlog_assign_grant_head_val() argument
534 return ((int64_t)cycle << 32) | space; in xlog_assign_grant_head_val()
[all …]
Dxfs_sysfs.c320 int cycle; in log_head_lsn_show() local
325 cycle = log->l_curr_cycle; in log_head_lsn_show()
329 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_head_lsn_show()
338 int cycle; in log_tail_lsn_show() local
342 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show()
343 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_tail_lsn_show()
353 int cycle; in reserve_grant_head_show() local
357 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
358 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
367 int cycle; in write_grant_head_show() local
[all …]
Dxfs_log.c104 int cycle, space; in xlog_grant_sub_space() local
106 xlog_crack_grant_head_val(head_val, &cycle, &space); in xlog_grant_sub_space()
111 cycle--; in xlog_grant_sub_space()
115 new = xlog_assign_grant_head_val(cycle, space); in xlog_grant_sub_space()
131 int cycle, space; in xlog_grant_add_space() local
133 xlog_crack_grant_head_val(head_val, &cycle, &space); in xlog_grant_add_space()
140 cycle++; in xlog_grant_add_space()
144 new = xlog_assign_grant_head_val(cycle, space); in xlog_grant_add_space()
1778 uint32_t cycle = get_unaligned_be32(data + i); in xlog_split_iclog() local
1780 if (++cycle == XLOG_HEADER_MAGIC_NUM) in xlog_split_iclog()
[all …]
Dxfs_log_recover.c280 uint cycle) in xlog_find_cycle_start() argument
295 if (mid_cycle == cycle) in xlog_find_cycle_start()
326 uint cycle; in xlog_find_verify_cycle() local
357 cycle = xlog_get_cycle(buf); in xlog_find_verify_cycle()
358 if (cycle == stop_on_cycle_no) { in xlog_find_verify_cycle()
1495 int cycle, in xlog_add_record() argument
1504 recp->h_cycle = cpu_to_be32(cycle); in xlog_add_record()
1507 recp->h_lsn = cpu_to_be64(xlog_assign_lsn(cycle, block)); in xlog_add_record()
1516 int cycle, in xlog_write_log_records() argument
1580 xlog_add_record(log, offset, cycle, i+j, in xlog_write_log_records()
/fs/xfs/libxfs/
Dxfs_log_format.h60 static inline xfs_lsn_t xlog_assign_lsn(uint cycle, uint block) in xlog_assign_lsn() argument
62 return ((xfs_lsn_t)cycle << 32) | block; in xlog_assign_lsn()