Lines Matching refs:sbi

27 void reserve_new_block(struct f2fs_sb_info *sbi, block_t *to,  in reserve_new_block()  argument
30 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in reserve_new_block()
35 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
37 if (find_next_free_block(sbi, &blkaddr, 0, type)) { in reserve_new_block()
42 se = get_seg_entry(sbi, GET_SEGNO(sbi, blkaddr)); in reserve_new_block()
43 offset = OFFSET_IN_SEG(sbi, blkaddr); in reserve_new_block()
48 f2fs_set_main_bitmap(sbi, blkaddr, type); in reserve_new_block()
49 f2fs_set_sit_bitmap(sbi, blkaddr); in reserve_new_block()
53 sbi->total_valid_block_count++; in reserve_new_block()
61 update_sum_entry(sbi, *to, sum); in reserve_new_block()
64 int new_data_block(struct f2fs_sb_info *sbi, void *block, in new_data_block() argument
70 struct f2fs_checkpoint *cp = F2FS_CKPT(sbi); in new_data_block()
80 get_node_info(sbi, dn->nid, &ni); in new_data_block()
82 reserve_new_block(sbi, &dn->data_blkaddr, &sum, type); in new_data_block()
92 u64 f2fs_read(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_read() argument
115 get_node_info(sbi, ino, &ni); in f2fs_read()
132 get_dnode_of_data(sbi, &dn, F2FS_BYTES_TO_BLK(offset), in f2fs_read()
175 u64 f2fs_write(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_write() argument
197 get_node_info(sbi, ino, &ni); in f2fs_write()
207 err = get_dnode_of_data(sbi, &dn, in f2fs_write()
222 err = new_data_block(sbi, blk_buffer, in f2fs_write()
269 void f2fs_filesize_update(struct f2fs_sb_info *sbi, nid_t ino, u64 filesize) in f2fs_filesize_update() argument
276 get_node_info(sbi, ino, &ni); in f2fs_filesize_update()
288 int f2fs_build_file(struct f2fs_sb_info *sbi, struct dentry *de) in f2fs_build_file() argument
309 get_node_info(sbi, de->ino, &ni); in f2fs_build_file()
333 f2fs_write(sbi, de->ino, buffer, n, off); in f2fs_build_file()
342 update_free_segments(sbi); in f2fs_build_file()