Home
last modified time | relevance | path

Searched refs:curseg (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/fs/f2fs/
Dsegment.c2317 struct curseg_info *curseg = CURSEG_I(sbi, type); in __add_sum_entry() local
2318 void *addr = curseg->sum_blk; in __add_sum_entry()
2320 addr += curseg->next_blkoff * sizeof(struct f2fs_summary); in __add_sum_entry()
2383 struct curseg_info *curseg = CURSEG_I(sbi, type); in write_current_sum_page() local
2385 struct f2fs_summary_block *src = curseg->sum_blk; in write_current_sum_page()
2391 mutex_lock(&curseg->curseg_mutex); in write_current_sum_page()
2393 down_read(&curseg->journal_rwsem); in write_current_sum_page()
2394 memcpy(&dst->journal, curseg->journal, SUM_JOURNAL_SIZE); in write_current_sum_page()
2395 up_read(&curseg->journal_rwsem); in write_current_sum_page()
2400 mutex_unlock(&curseg->curseg_mutex); in write_current_sum_page()
[all …]
Ddebug.c177 struct curseg_info *curseg = CURSEG_I(sbi, i); in update_general_status() local
179 si->curseg[i] = curseg->segno; in update_general_status()
180 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status()
399 si->curseg[CURSEG_COLD_DATA], in stat_show()
406 si->curseg[CURSEG_WARM_DATA], in stat_show()
413 si->curseg[CURSEG_HOT_DATA], in stat_show()
420 si->curseg[CURSEG_HOT_NODE], in stat_show()
427 si->curseg[CURSEG_WARM_NODE], in stat_show()
434 si->curseg[CURSEG_COLD_NODE], in stat_show()
441 si->curseg[CURSEG_COLD_DATA_PINNED], in stat_show()
[all …]
Dsegment.h89 #define NEXT_FREE_BLKADDR(sbi, curseg) \ argument
90 (START_BLOCK(sbi, (curseg)->segno) + (curseg)->next_blkoff)
693 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_segno() local
694 return curseg->segno; in curseg_segno()
700 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_alloc_type() local
701 return curseg->alloc_type; in curseg_alloc_type()
706 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_blkoff() local
707 return curseg->next_blkoff; in curseg_blkoff()
Drecovery.c366 struct curseg_info *curseg; in find_fsync_dnodes() local
376 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in find_fsync_dnodes()
377 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes()
487 struct curseg_info *curseg = CURSEG_I(sbi, i); in check_index_in_prev_nodes() local
489 if (curseg->segno == segno) { in check_index_in_prev_nodes()
490 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes()
747 struct curseg_info *curseg; in recover_data() local
754 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in recover_data()
755 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in recover_data()
Dnode.c546 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in f2fs_get_node_info() local
547 struct f2fs_journal *journal = curseg->journal; in f2fs_get_node_info()
577 down_read(&curseg->journal_rwsem); in f2fs_get_node_info()
579 !down_read_trylock(&curseg->journal_rwsem)) { in f2fs_get_node_info()
589 up_read(&curseg->journal_rwsem); in f2fs_get_node_info()
2396 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in scan_curseg_cache() local
2397 struct f2fs_journal *journal = curseg->journal; in scan_curseg_cache()
2400 down_read(&curseg->journal_rwsem); in scan_curseg_cache()
2412 up_read(&curseg->journal_rwsem); in scan_curseg_cache()
2857 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in remove_nats_in_journal() local
[all …]
Df2fs.h3893 int curseg[NR_CURSEG_TYPE]; member
3987 #define stat_inc_seg_type(sbi, curseg) \ argument
3988 ((sbi)->segment_count[(curseg)->alloc_type]++)
3989 #define stat_inc_block_count(sbi, curseg) \ argument
3990 ((sbi)->block_count[(curseg)->alloc_type]++)
4066 #define stat_inc_seg_type(sbi, curseg) do { } while (0) argument
4067 #define stat_inc_block_count(sbi, curseg) do { } while (0) argument