Home | History | Annotate | Download | only in fsck

Lines Matching refs:sbi

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