Home
last modified time | relevance | path

Searched refs:sit_blk (Results 1 – 3 of 3) sorted by relevance

/external/f2fs-tools/fsck/
Dmount.c1614 unsigned int segno, struct f2fs_sit_block *sit_blk) in get_current_sit_page() argument
1627 ret = dev_read_block(sit_blk, blk_addr); in get_current_sit_page()
1632 unsigned int segno, struct f2fs_sit_block *sit_blk) in rewrite_current_sit_page() argument
1643 ret = dev_write_block(sit_blk, blk_addr); in rewrite_current_sit_page()
1895 struct f2fs_sit_block *sit_blk; in build_sit_entries() local
1900 sit_blk = calloc(BLOCK_SZ, 1); in build_sit_entries()
1901 if (!sit_blk) { in build_sit_entries()
1909 get_current_sit_page(sbi, segno, sit_blk); in build_sit_entries()
1910 sit = sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in build_sit_entries()
1916 free(sit_blk); in build_sit_entries()
[all …]
Dresize.c396 struct f2fs_sit_block *sit_blk = calloc(BLOCK_SZ, 1); in migrate_sit() local
403 ASSERT(sit_blk); in migrate_sit()
407 ret = dev_write_block(sit_blk, get_newsb(sit_blkaddr) + index); in migrate_sit()
425 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
430 memset(sit_blk, 0, BLOCK_SZ); in migrate_sit()
433 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno - offset)]; in migrate_sit()
439 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
443 free(sit_blk); in migrate_sit()
Dfsck.c1996 struct f2fs_sit_block *sit_blk; in flush_curseg_sit_entries() local
1999 sit_blk = calloc(BLOCK_SZ, 1); in flush_curseg_sit_entries()
2000 ASSERT(sit_blk); in flush_curseg_sit_entries()
2010 get_current_sit_page(sbi, curseg->segno, sit_blk); in flush_curseg_sit_entries()
2011 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, curseg->segno)]; in flush_curseg_sit_entries()
2014 rewrite_current_sit_page(sbi, curseg->segno, sit_blk); in flush_curseg_sit_entries()
2017 free(sit_blk); in flush_curseg_sit_entries()