Lines Matching refs:sbi
19 void reserve_new_block(struct f2fs_sb_info *sbi, block_t *to, in reserve_new_block() argument
26 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
28 if (find_next_free_block(sbi, &blkaddr, 0, type)) { in reserve_new_block()
33 se = get_seg_entry(sbi, GET_SEGNO(sbi, blkaddr)); in reserve_new_block()
34 offset = OFFSET_IN_SEG(sbi, blkaddr); in reserve_new_block()
38 sbi->total_valid_block_count++; in reserve_new_block()
43 update_sum_entry(sbi, *to, sum); in reserve_new_block()
46 void new_data_block(struct f2fs_sb_info *sbi, void *block, in new_data_block() argument
55 get_node_info(sbi, dn->nid, &ni); in new_data_block()
57 reserve_new_block(sbi, &dn->data_blkaddr, &sum, type); in new_data_block()
63 static void f2fs_write_block(struct f2fs_sb_info *sbi, nid_t ino, void *buffer, in f2fs_write_block() argument
76 get_node_info(sbi, ino, &ni); in f2fs_write_block()
108 get_dnode_of_data(sbi, &dn, start, ALLOC_NODE); in f2fs_write_block()
119 new_data_block(sbi, data_blk, &dn, in f2fs_write_block()
166 int f2fs_build_file(struct f2fs_sb_info *sbi, struct dentry *de) in f2fs_build_file() argument
187 get_node_info(sbi, de->ino, &ni); in f2fs_build_file()
208 f2fs_write_block(sbi, de->ino, buffer, n, off); in f2fs_build_file()
217 update_free_segments(sbi); in f2fs_build_file()