Lines Matching refs:nat_blk
1447 struct f2fs_nat_block *nat_blk = NULL; in f2fs_update_nat_root() local
1452 nat_blk = calloc(F2FS_BLKSIZE, 1); in f2fs_update_nat_root()
1453 if(nat_blk == NULL) { in f2fs_update_nat_root()
1462 nat_blk->entries[sb->qf_ino[qtype]].block_addr = in f2fs_update_nat_root()
1466 nat_blk->entries[sb->qf_ino[qtype]].ino = sb->qf_ino[qtype]; in f2fs_update_nat_root()
1471 nat_blk->entries[get_sb(root_ino)].block_addr = cpu_to_le32( in f2fs_update_nat_root()
1474 nat_blk->entries[get_sb(root_ino)].ino = sb->root_ino; in f2fs_update_nat_root()
1477 nat_blk->entries[get_sb(node_ino)].block_addr = cpu_to_le32(1); in f2fs_update_nat_root()
1478 nat_blk->entries[get_sb(node_ino)].ino = sb->node_ino; in f2fs_update_nat_root()
1481 nat_blk->entries[get_sb(meta_ino)].block_addr = cpu_to_le32(1); in f2fs_update_nat_root()
1482 nat_blk->entries[get_sb(meta_ino)].ino = sb->meta_ino; in f2fs_update_nat_root()
1488 if (dev_write_block(nat_blk, nat_seg_blk_offset)) { in f2fs_update_nat_root()
1490 free(nat_blk); in f2fs_update_nat_root()
1494 free(nat_blk); in f2fs_update_nat_root()