Lines Matching refs:sit_blk
1997 unsigned int segno, struct f2fs_sit_block *sit_blk) in get_current_sit_page() argument
2001 ASSERT(dev_read_block(sit_blk, blk_addr) >= 0); in get_current_sit_page()
2005 unsigned int segno, struct f2fs_sit_block *sit_blk) in rewrite_current_sit_page() argument
2009 ASSERT(dev_write_block(sit_blk, blk_addr) >= 0); in rewrite_current_sit_page()
2296 struct f2fs_sit_block *sit_blk; in build_sit_entries() local
2303 sit_blk = calloc(BLOCK_SZ, 1); in build_sit_entries()
2304 if (!sit_blk) { in build_sit_entries()
2319 get_current_sit_page(sbi, segno, sit_blk); in build_sit_entries()
2320 sit = sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in build_sit_entries()
2329 free(sit_blk); in build_sit_entries()
2453 struct f2fs_sit_block *sit_blk; in rewrite_sit_area_bitmap() local
2458 sit_blk = calloc(BLOCK_SZ, 1); in rewrite_sit_area_bitmap()
2459 ASSERT(sit_blk); in rewrite_sit_area_bitmap()
2472 get_current_sit_page(sbi, segno, sit_blk); in rewrite_sit_area_bitmap()
2473 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in rewrite_sit_area_bitmap()
2491 rewrite_current_sit_page(sbi, segno, sit_blk); in rewrite_sit_area_bitmap()
2496 free(sit_blk); in rewrite_sit_area_bitmap()
2504 struct f2fs_sit_block *sit_blk; in flush_sit_journal_entries() local
2508 sit_blk = calloc(BLOCK_SZ, 1); in flush_sit_journal_entries()
2509 ASSERT(sit_blk); in flush_sit_journal_entries()
2517 get_current_sit_page(sbi, segno, sit_blk); in flush_sit_journal_entries()
2518 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in flush_sit_journal_entries()
2525 rewrite_current_sit_page(sbi, segno, sit_blk); in flush_sit_journal_entries()
2528 free(sit_blk); in flush_sit_journal_entries()
2582 struct f2fs_sit_block *sit_blk; in flush_sit_entries() local
2585 sit_blk = calloc(BLOCK_SZ, 1); in flush_sit_entries()
2586 ASSERT(sit_blk); in flush_sit_entries()
2597 get_current_sit_page(sbi, segno, sit_blk); in flush_sit_entries()
2598 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in flush_sit_entries()
2602 rewrite_current_sit_page(sbi, segno, sit_blk); in flush_sit_entries()
2605 free(sit_blk); in flush_sit_entries()