Home
last modified time | relevance | path

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

/openbmc/linux/fs/f2fs/
H A Dsegment.c2558 struct curseg_info *curseg = CURSEG_I(sbi, type); in f2fs_curseg_valid_blocks() local
2562 return curseg->next_blkoff; in f2fs_curseg_valid_blocks()
2620 struct curseg_info *curseg = CURSEG_I(sbi, type); in write_current_sum_page() local
2622 struct f2fs_summary_block *src = curseg->sum_blk; in write_current_sum_page()
2628 mutex_lock(&curseg->curseg_mutex); in write_current_sum_page()
2630 down_read(&curseg->journal_rwsem); in write_current_sum_page()
2631 memcpy(&dst->journal, curseg->journal, SUM_JOURNAL_SIZE); in write_current_sum_page()
2632 up_read(&curseg->journal_rwsem); in write_current_sum_page()
2637 mutex_unlock(&curseg->curseg_mutex); in write_current_sum_page()
2644 struct curseg_info *curseg, int type) in is_next_segment_free() argument
[all …]
H A Ddebug.c188 struct curseg_info *curseg = CURSEG_I(sbi, i); in update_general_status() local
190 si->curseg[i] = curseg->segno; in update_general_status()
191 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status()
447 si->curseg[CURSEG_COLD_DATA], in stat_show()
454 si->curseg[CURSEG_WARM_DATA], in stat_show()
461 si->curseg[CURSEG_HOT_DATA], in stat_show()
468 si->curseg[CURSEG_HOT_NODE], in stat_show()
475 si->curseg[CURSEG_WARM_NODE], in stat_show()
482 si->curseg[CURSEG_COLD_NODE], in stat_show()
489 si->curseg[CURSEG_COLD_DATA_PINNED], in stat_show()
[all …]
H A Drecovery.c410 struct curseg_info *curseg; in find_fsync_dnodes() local
417 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in find_fsync_dnodes()
418 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes()
516 struct curseg_info *curseg = CURSEG_I(sbi, i); in check_index_in_prev_nodes() local
518 if (curseg->segno == segno) { in check_index_in_prev_nodes()
519 sum = curseg->sum_blk->entries[blkoff]; in check_index_in_prev_nodes()
786 struct curseg_info *curseg; in recover_data() local
793 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in recover_data()
794 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in recover_data()
H A Dsegment.h89 #define NEXT_FREE_BLKADDR(sbi, curseg) \ argument
90 (START_BLOCK(sbi, (curseg)->segno) + (curseg)->next_blkoff)
737 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_segno() local
738 return curseg->segno; in curseg_segno()
744 struct curseg_info *curseg = CURSEG_I(sbi, type); in curseg_alloc_type() local
745 return curseg->alloc_type; in curseg_alloc_type()
H A Dnode.c550 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in f2fs_get_node_info() local
551 struct f2fs_journal *journal = curseg->journal; in f2fs_get_node_info()
581 down_read(&curseg->journal_rwsem); in f2fs_get_node_info()
583 !down_read_trylock(&curseg->journal_rwsem)) { in f2fs_get_node_info()
593 up_read(&curseg->journal_rwsem); in f2fs_get_node_info()
2432 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in scan_curseg_cache() local
2433 struct f2fs_journal *journal = curseg->journal; in scan_curseg_cache()
2436 down_read(&curseg->journal_rwsem); in scan_curseg_cache()
2448 up_read(&curseg->journal_rwsem); in scan_curseg_cache()
2900 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in remove_nats_in_journal() local
[all …]
H A Dcheckpoint.c1476 struct curseg_info *curseg = CURSEG_I(sbi, i + CURSEG_HOT_NODE); in do_checkpoint() local
1478 ckpt->cur_node_segno[i] = cpu_to_le32(curseg->segno); in do_checkpoint()
1479 ckpt->cur_node_blkoff[i] = cpu_to_le16(curseg->next_blkoff); in do_checkpoint()
1480 ckpt->alloc_type[i + CURSEG_HOT_NODE] = curseg->alloc_type; in do_checkpoint()
1483 struct curseg_info *curseg = CURSEG_I(sbi, i + CURSEG_HOT_DATA); in do_checkpoint() local
1485 ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno); in do_checkpoint()
1486 ckpt->cur_data_blkoff[i] = cpu_to_le16(curseg->next_blkoff); in do_checkpoint()
1487 ckpt->alloc_type[i + CURSEG_HOT_DATA] = curseg->alloc_type; in do_checkpoint()
H A Df2fs.h3941 int curseg[NR_CURSEG_TYPE]; member
4034 #define stat_inc_seg_type(sbi, curseg) \ argument
4035 ((sbi)->segment_count[(curseg)->alloc_type]++)
4036 #define stat_inc_block_count(sbi, curseg) \ argument
4037 ((sbi)->block_count[(curseg)->alloc_type]++)
4105 #define stat_inc_seg_type(sbi, curseg) do { } while (0) argument
4106 #define stat_inc_block_count(sbi, curseg) do { } while (0) argument