Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_sysfs.c136 int cycle; in log_head_lsn_show() local
140 cycle = log->l_curr_cycle; in log_head_lsn_show()
144 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_head_lsn_show()
154 int cycle; in log_tail_lsn_show() local
157 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show()
158 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_tail_lsn_show()
168 int cycle; in reserve_grant_head_show() local
171 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
172 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
182 int cycle; in write_grant_head_show() local
[all …]
Dxfs_log_priv.h470 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
474 *cycle = CYCLE_LSN(val); in xlog_crack_atomic_lsn()
482 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
484 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
493 xlog_crack_grant_head_val(int64_t val, int *cycle, int *space) in xlog_crack_grant_head_val() argument
495 *cycle = val >> 32; in xlog_crack_grant_head_val()
500 xlog_crack_grant_head(atomic64_t *head, int *cycle, int *space) in xlog_crack_grant_head() argument
502 xlog_crack_grant_head_val(atomic64_read(head), cycle, space); in xlog_crack_grant_head()
506 xlog_assign_grant_head_val(int cycle, int space) in xlog_assign_grant_head_val() argument
508 return ((int64_t)cycle << 32) | space; in xlog_assign_grant_head_val()
[all …]
Dxfs_log.c149 int cycle, space; in xlog_grant_sub_space() local
151 xlog_crack_grant_head_val(head_val, &cycle, &space); in xlog_grant_sub_space()
156 cycle--; in xlog_grant_sub_space()
160 new = xlog_assign_grant_head_val(cycle, space); in xlog_grant_sub_space()
176 int cycle, space; in xlog_grant_add_space() local
178 xlog_crack_grant_head_val(head_val, &cycle, &space); in xlog_grant_add_space()
185 cycle++; in xlog_grant_add_space()
189 new = xlog_assign_grant_head_val(cycle, space); in xlog_grant_add_space()
1791 __uint32_t cycle = be32_to_cpu(*(__be32 *)dptr); in xlog_sync() local
1792 if (++cycle == XLOG_HEADER_MAGIC_NUM) in xlog_sync()
[all …]
Dxfs_log_recover.c399 uint cycle) in xlog_find_cycle_start() argument
414 if (mid_cycle == cycle) in xlog_find_cycle_start()
445 uint cycle; in xlog_find_verify_cycle() local
476 cycle = xlog_get_cycle(buf); in xlog_find_verify_cycle()
477 if (cycle == stop_on_cycle_no) { in xlog_find_verify_cycle()
1205 int cycle, in xlog_add_record() argument
1214 recp->h_cycle = cpu_to_be32(cycle); in xlog_add_record()
1217 recp->h_lsn = cpu_to_be64(xlog_assign_lsn(cycle, block)); in xlog_add_record()
1226 int cycle, in xlog_write_log_records() argument
1291 xlog_add_record(log, offset, cycle, i+j, in xlog_write_log_records()
/fs/xfs/libxfs/
Dxfs_log_format.h72 static inline xfs_lsn_t xlog_assign_lsn(uint cycle, uint block) in xlog_assign_lsn() argument
74 return ((xfs_lsn_t)cycle << 32) | block; in xlog_assign_lsn()