Lines Matching refs:sbi
52 static void f2fs_make_directory(struct f2fs_sb_info *sbi, in f2fs_make_directory() argument
59 f2fs_mkdir(sbi, de + i); in f2fs_make_directory()
61 f2fs_create(sbi, de + i); in f2fs_make_directory()
63 f2fs_symlink(sbi, de + i); in f2fs_make_directory()
67 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory() argument
153 f2fs_make_directory(sbi, entries, dentries); in build_directory()
157 f2fs_build_file(sbi, dentries + i); in build_directory()
169 build_directory(sbi, subdir_full_path, subdir_dir_path, in build_directory()
184 inode_set_selinux(sbi, dentries[i].ino, dentries[i].secon); in build_directory()
205 int f2fs_sload(struct f2fs_sb_info *sbi, const char *from_dir, in f2fs_sload() argument
211 nid_t mnt_ino = F2FS_ROOT_INO(sbi); in f2fs_sload()
214 flush_journal_entries(sbi); in f2fs_sload()
216 ret = f2fs_find_path(sbi, (char *)mount_point, &mnt_ino); in f2fs_sload()
222 ret = build_directory(sbi, from_dir, mount_point, target_out_dir, in f2fs_sload()
239 mount_point, secontext, F2FS_ROOT_INO(sbi)); in f2fs_sload()
241 inode_set_selinux(sbi, F2FS_ROOT_INO(sbi), secontext); in f2fs_sload()
248 move_curseg_info(sbi, SM_I(sbi)->main_blkaddr); in f2fs_sload()
249 zero_journal_entries(sbi); in f2fs_sload()
250 write_curseg_info(sbi); in f2fs_sload()
253 flush_sit_entries(sbi); in f2fs_sload()
255 write_checkpoint(sbi); in f2fs_sload()