Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_log_priv.h529 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
533 *cycle = CYCLE_LSN(val); in xlog_crack_atomic_lsn()
541 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
543 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
552 xlog_crack_grant_head_val(int64_t val, int *cycle, int *space) in xlog_crack_grant_head_val() argument
554 *cycle = val >> 32; in xlog_crack_grant_head_val()
559 xlog_crack_grant_head(atomic64_t *head, int *cycle, int *space) in xlog_crack_grant_head() argument
561 xlog_crack_grant_head_val(atomic64_read(head), cycle, space); in xlog_crack_grant_head()
565 xlog_assign_grant_head_val(int cycle, int space) in xlog_assign_grant_head_val() argument
567 return ((int64_t)cycle << 32) | space; in xlog_assign_grant_head_val()
[all …]
Dxfs_sysfs.c348 int cycle; in log_head_lsn_show() local
353 cycle = log->l_curr_cycle; in log_head_lsn_show()
357 return sysfs_emit(buf, "%d:%d\n", cycle, block); in log_head_lsn_show()
366 int cycle; in log_tail_lsn_show() local
370 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show()
371 return sysfs_emit(buf, "%d:%d\n", cycle, block); in log_tail_lsn_show()
381 int cycle; in reserve_grant_head_show() local
385 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
386 return sysfs_emit(buf, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
395 int cycle; in write_grant_head_show() local
[all …]
Dxfs_log.c154 int cycle, space; in xlog_grant_sub_space() local
156 xlog_crack_grant_head_val(head_val, &cycle, &space); in xlog_grant_sub_space()
161 cycle--; in xlog_grant_sub_space()
165 new = xlog_assign_grant_head_val(cycle, space); in xlog_grant_sub_space()
181 int cycle, space; in xlog_grant_add_space() local
183 xlog_crack_grant_head_val(head_val, &cycle, &space); in xlog_grant_add_space()
190 cycle++; in xlog_grant_add_space()
194 new = xlog_assign_grant_head_val(cycle, space); in xlog_grant_add_space()
1987 uint32_t cycle = get_unaligned_be32(data + i); in xlog_split_iclog() local
1989 if (++cycle == XLOG_HEADER_MAGIC_NUM) in xlog_split_iclog()
[all …]
Dxfs_log_recover.c274 uint cycle) in xlog_find_cycle_start() argument
289 if (mid_cycle == cycle) in xlog_find_cycle_start()
320 uint cycle; in xlog_find_verify_cycle() local
351 cycle = xlog_get_cycle(buf); in xlog_find_verify_cycle()
352 if (cycle == stop_on_cycle_no) { in xlog_find_verify_cycle()
1489 int cycle, in xlog_add_record() argument
1498 recp->h_cycle = cpu_to_be32(cycle); in xlog_add_record()
1501 recp->h_lsn = cpu_to_be64(xlog_assign_lsn(cycle, block)); in xlog_add_record()
1510 int cycle, in xlog_write_log_records() argument
1574 xlog_add_record(log, offset, cycle, i+j, in xlog_write_log_records()
/fs/xfs/libxfs/
Dxfs_log_format.h57 static inline xfs_lsn_t xlog_assign_lsn(uint cycle, uint block) in xlog_assign_lsn() argument
59 return ((xfs_lsn_t)cycle << 32) | block; in xlog_assign_lsn()