Searched refs:curseg (Results 1 – 6 of 6) sorted by relevance
/fs/f2fs/ |
D | segment.c | 2028 struct curseg_info *curseg = CURSEG_I(sbi, type); in __add_sum_entry() local 2029 void *addr = curseg->sum_blk; in __add_sum_entry() 2030 addr += curseg->next_blkoff * sizeof(struct f2fs_summary); in __add_sum_entry() 2090 struct curseg_info *curseg = CURSEG_I(sbi, type); in write_current_sum_page() local 2092 struct f2fs_summary_block *src = curseg->sum_blk; in write_current_sum_page() 2097 mutex_lock(&curseg->curseg_mutex); in write_current_sum_page() 2099 down_read(&curseg->journal_rwsem); in write_current_sum_page() 2100 memcpy(&dst->journal, curseg->journal, SUM_JOURNAL_SIZE); in write_current_sum_page() 2101 up_read(&curseg->journal_rwsem); in write_current_sum_page() 2106 mutex_unlock(&curseg->curseg_mutex); in write_current_sum_page() [all …]
|
D | recovery.c | 220 struct curseg_info *curseg; in find_fsync_dnodes() local 226 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in find_fsync_dnodes() 227 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes() 315 struct curseg_info *curseg = CURSEG_I(sbi, i); in check_index_in_prev_nodes() local 316 if (curseg->segno == segno) { in check_index_in_prev_nodes() 317 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes() 518 struct curseg_info *curseg; in recover_data() local 524 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in recover_data() 525 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in recover_data()
|
D | debug.c | 123 struct curseg_info *curseg = CURSEG_I(sbi, i); in update_general_status() local 124 si->curseg[i] = curseg->segno; in update_general_status() 125 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status() 312 si->curseg[CURSEG_COLD_DATA], in stat_show() 316 si->curseg[CURSEG_WARM_DATA], in stat_show() 320 si->curseg[CURSEG_HOT_DATA], in stat_show() 324 si->curseg[CURSEG_HOT_NODE], in stat_show() 328 si->curseg[CURSEG_WARM_NODE], in stat_show() 332 si->curseg[CURSEG_COLD_NODE], in stat_show()
|
D | segment.h | 71 #define NEXT_FREE_BLKADDR(sbi, curseg) \ argument 72 (START_BLOCK(sbi, (curseg)->segno) + (curseg)->next_blkoff) 626 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_segno() local 627 return curseg->segno; in curseg_segno() 633 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_alloc_type() local 634 return curseg->alloc_type; in curseg_alloc_type() 639 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_blkoff() local 640 return curseg->next_blkoff; in curseg_blkoff()
|
D | node.c | 400 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in get_node_info() local 401 struct f2fs_journal *journal = curseg->journal; in get_node_info() 426 down_read(&curseg->journal_rwsem); in get_node_info() 432 up_read(&curseg->journal_rwsem); in get_node_info() 1981 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in scan_curseg_cache() local 1982 struct f2fs_journal *journal = curseg->journal; in scan_curseg_cache() 1985 down_read(&curseg->journal_rwsem); in scan_curseg_cache() 1997 up_read(&curseg->journal_rwsem); in scan_curseg_cache() 2387 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in remove_nats_in_journal() local 2388 struct f2fs_journal *journal = curseg->journal; in remove_nats_in_journal() [all …]
|
D | f2fs.h | 2919 int curseg[NR_CURSEG_TYPE]; member 2974 #define stat_inc_seg_type(sbi, curseg) \ argument 2975 ((sbi)->segment_count[(curseg)->alloc_type]++) 2976 #define stat_inc_block_count(sbi, curseg) \ argument 2977 ((sbi)->block_count[(curseg)->alloc_type]++) 3061 #define stat_inc_seg_type(sbi, curseg) do { } while (0) argument 3062 #define stat_inc_block_count(sbi, curseg) do { } while (0) argument
|