Home
last modified time | relevance | path

Searched refs:sbi (Results 1 – 25 of 90) sorted by relevance

1234

/external/f2fs-tools/fsck/
Df2fs.h291 static inline struct f2fs_super_block *F2FS_RAW_SUPER(struct f2fs_sb_info *sbi) in F2FS_RAW_SUPER() argument
293 return (struct f2fs_super_block *)(sbi->raw_super); in F2FS_RAW_SUPER()
296 static inline struct f2fs_checkpoint *F2FS_CKPT(struct f2fs_sb_info *sbi) in F2FS_CKPT() argument
298 return (struct f2fs_checkpoint *)(sbi->ckpt); in F2FS_CKPT()
301 static inline struct f2fs_fsck *F2FS_FSCK(struct f2fs_sb_info *sbi) in F2FS_FSCK() argument
303 return (struct f2fs_fsck *)(sbi->fsck); in F2FS_FSCK()
306 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I() argument
308 return (struct f2fs_nm_info *)(sbi->nm_info); in NM_I()
311 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() argument
313 return (struct f2fs_sm_info *)(sbi->sm_info); in SM_I()
[all …]
Dmount.c33 static int get_device_idx(struct f2fs_sb_info *sbi, u_int32_t segno) in get_device_idx() argument
38 seg_start_blkaddr = SM_I(sbi)->main_blkaddr + in get_device_idx()
49 static int get_zone_idx_from_dev(struct f2fs_sb_info *sbi, in get_zone_idx_from_dev() argument
52 block_t seg_start_blkaddr = START_BLOCK(sbi, segno); in get_zone_idx_from_dev()
55 log_base_2(sbi->segs_per_sec * sbi->blocks_per_seg); in get_zone_idx_from_dev()
58 bool is_usable_seg(struct f2fs_sb_info *sbi, unsigned int segno) in is_usable_seg() argument
60 unsigned int secno = segno / sbi->segs_per_sec; in is_usable_seg()
61 block_t seg_start = START_BLOCK(sbi, segno); in is_usable_seg()
62 block_t blocks_per_sec = sbi->blocks_per_seg * sbi->segs_per_sec; in is_usable_seg()
63 unsigned int dev_idx = get_device_idx(sbi, segno); in is_usable_seg()
[all …]
Dfsck.c19 int f2fs_set_main_bitmap(struct f2fs_sb_info *sbi, u32 blk, int type) in f2fs_set_main_bitmap() argument
21 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in f2fs_set_main_bitmap()
25 se = get_seg_entry(sbi, GET_SEGNO(sbi, blk)); in f2fs_set_main_bitmap()
34 GET_SEGNO(sbi, blk), se->type, type); in f2fs_set_main_bitmap()
37 return f2fs_set_bit(BLKOFF_FROM_MAIN(sbi, blk), fsck->main_area_bitmap); in f2fs_set_main_bitmap()
40 static inline int f2fs_test_main_bitmap(struct f2fs_sb_info *sbi, u32 blk) in f2fs_test_main_bitmap() argument
42 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in f2fs_test_main_bitmap()
44 return f2fs_test_bit(BLKOFF_FROM_MAIN(sbi, blk), in f2fs_test_main_bitmap()
48 static inline int f2fs_clear_main_bitmap(struct f2fs_sb_info *sbi, u32 blk) in f2fs_clear_main_bitmap() argument
50 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in f2fs_clear_main_bitmap()
[all …]
Ddefrag.c12 static int migrate_block(struct f2fs_sb_info *sbi, u64 from, u64 to) in migrate_block() argument
31 se = get_seg_entry(sbi, GET_SEGNO(sbi, from)); in migrate_block()
32 offset = OFFSET_IN_SEG(sbi, from); in migrate_block()
38 se = get_seg_entry(sbi, GET_SEGNO(sbi, to)); in migrate_block()
39 offset = OFFSET_IN_SEG(sbi, to); in migrate_block()
46 get_sum_entry(sbi, from, &sum); in migrate_block()
47 update_sum_entry(sbi, to, &sum); in migrate_block()
51 update_data_blkaddr(sbi, le32_to_cpu(sum.nid), in migrate_block()
54 update_nat_blkaddr(sbi, 0, le32_to_cpu(sum.nid), to); in migrate_block()
63 int f2fs_defragment(struct f2fs_sb_info *sbi, u64 from, u64 len, u64 to, int left) in f2fs_defragment() argument
[all …]
Dresize.c166 static void migrate_main(struct f2fs_sb_info *sbi, unsigned int offset) in migrate_main() argument
176 for (i = TOTAL_SEGS(sbi) - 1; i >= 0; i--) { in migrate_main()
177 se = get_seg_entry(sbi, i); in migrate_main()
181 for (j = sbi->blocks_per_seg - 1; j >= 0; j--) { in migrate_main()
185 from = START_BLOCK(sbi, i) + j; in migrate_main()
193 get_sum_entry(sbi, from, &sum); in migrate_main()
196 update_data_blkaddr(sbi, le32_to_cpu(sum.nid), in migrate_main()
199 update_nat_blkaddr(sbi, 0, in migrate_main()
205 START_BLOCK(sbi, 0), in migrate_main()
206 START_BLOCK(sbi, 0) + offset); in migrate_main()
[all …]
Dsegment.c23 int reserve_new_block(struct f2fs_sb_info *sbi, block_t *to, in reserve_new_block() argument
26 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in reserve_new_block()
34 if (fsck->chk.valid_blk_cnt >= sbi->user_block_count) { in reserve_new_block()
39 sbi->total_valid_node_count) { in reserve_new_block()
44 if (sbi->total_valid_block_count >= in reserve_new_block()
45 sbi->user_block_count) { in reserve_new_block()
49 if (is_node && sbi->total_valid_node_count >= in reserve_new_block()
50 sbi->total_node_count) { in reserve_new_block()
57 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
59 if (find_next_free_block(sbi, &blkaddr, 0, type, false)) { in reserve_new_block()
[all …]
Ddump.c34 void nat_dump(struct f2fs_sb_info *sbi, nid_t start_nat, nid_t end_nat) in nat_dump() argument
54 if(nid == 0 || nid == F2FS_NODE_INO(sbi) || in nat_dump()
55 nid == F2FS_META_INO(sbi)) in nat_dump()
59 block_addr = current_nat_addr(sbi, nid, &pack); in nat_dump()
61 if (lookup_nat_in_journal(sbi, nid, &raw_nat) >= 0) { in nat_dump()
106 void sit_dump(struct f2fs_sb_info *sbi, unsigned int start_sit, in sit_dump() argument
110 struct sit_info *sit_i = SIT_I(sbi); in sit_dump()
128 se = get_seg_entry(sbi, segno); in sit_dump()
166 SM_I(sbi)->main_segments - free_segs, in sit_dump()
174 void ssa_dump(struct f2fs_sb_info *sbi, int start_ssa, int end_ssa) in ssa_dump() argument
[all …]
Dmain.c809 static int do_fsck(struct f2fs_sb_info *sbi) in do_fsck() argument
811 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in do_fsck()
816 fsck_init(sbi); in do_fsck()
820 fsck_chk_and_fix_write_pointers(sbi); in do_fsck()
822 fsck_chk_curseg_info(sbi); in do_fsck()
827 if (fsck_chk_meta(sbi)) { in do_fsck()
833 fsck_free(sbi); in do_fsck()
855 fsck_chk_checkpoint(sbi); in do_fsck()
857 fsck_chk_quota_node(sbi); in do_fsck()
863 ret = quota_init_context(sbi); in do_fsck()
[all …]
Dsload.c45 static int f2fs_make_directory(struct f2fs_sb_info *sbi, in f2fs_make_directory() argument
53 ret = f2fs_mkdir(sbi, de + i); in f2fs_make_directory()
55 ret = f2fs_create(sbi, de + i); in f2fs_make_directory()
57 ret = f2fs_symlink(sbi, de + i); in f2fs_make_directory()
67 static int set_selinux_xattr(struct f2fs_sb_info *sbi, const char *path, in set_selinux_xattr() argument
92 inode_set_selinux(sbi, ino, secontext); in set_selinux_xattr()
198 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory() argument
239 ret = f2fs_make_directory(sbi, entries, dentries); in build_directory()
245 f2fs_build_file(sbi, dentries + i); in build_directory()
257 ret = build_directory(sbi, subdir_full_path, in build_directory()
[all …]
Ddir.c110 static int find_in_level(struct f2fs_sb_info *sbi, struct f2fs_node *dir, in find_in_level() argument
124 namehash = f2fs_dentry_hash(get_encoding(sbi), IS_CASEFOLDED(&dir->i), in find_in_level()
144 get_dnode_of_data(sbi, &dn, bidx, LOOKUP_NODE); in find_in_level()
167 static int f2fs_find_entry(struct f2fs_sb_info *sbi, in f2fs_find_entry() argument
175 if (find_in_level(sbi, dir, level, de)) in f2fs_find_entry()
182 nid_t f2fs_lookup(struct f2fs_sb_info *sbi, struct f2fs_node *dir, in f2fs_lookup() argument
191 err = f2fs_find_entry(sbi, dir, &de); in f2fs_lookup()
221 int f2fs_add_link(struct f2fs_sb_info *sbi, struct f2fs_node *parent, in f2fs_add_link() argument
228 f2fs_hash_t dentry_hash = f2fs_dentry_hash(get_encoding(sbi), in f2fs_add_link()
273 get_dnode_of_data(sbi, &dn, block, ALLOC_NODE); in f2fs_add_link()
[all …]
Dquotaio.c88 written = f2fs_write(qf->sbi, qf->ino, buf, size, offset); in quota_write_nomount()
99 return f2fs_read(qf->sbi, qf->ino, buf, size, offset); in quota_read_nomount()
105 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_open() argument
108 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in quota_file_open()
109 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in quota_file_open()
123 (void) quota_file_close(sbi, h, 0); in quota_file_open()
133 h->qh_qf.sbi = sbi; in quota_file_open()
165 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_create() argument
168 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in quota_file_create()
173 h->qh_qf.sbi = sbi; in quota_file_create()
[all …]
Dnode.c19 void f2fs_alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid) in f2fs_alloc_nid() argument
21 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_alloc_nid()
33 void f2fs_release_nid(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_release_nid() argument
35 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_release_nid()
61 block_t new_node_block(struct f2fs_sb_info *sbi, in new_node_block() argument
64 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in new_node_block()
67 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in new_node_block()
97 get_node_info(sbi, dn->nid, &ni); in new_node_block()
99 ret = reserve_new_block(sbi, &blkaddr, &sum, type, !ofs); in new_node_block()
106 update_nat_blkaddr(sbi, le32_to_cpu(f2fs_inode->footer.ino), in new_node_block()
[all …]
Dxattr.c20 void *read_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in read_all_xattrs() argument
35 ret = fsck_sanity_check_nid(sbi, xnid, node_blk, in read_all_xattrs()
53 get_node_info(sbi, xnid, &ni); in read_all_xattrs()
83 static void write_all_xattrs(struct f2fs_sb_info *sbi, in write_all_xattrs() argument
102 f2fs_alloc_nid(sbi, &new_nid); in write_all_xattrs()
106 blkaddr = new_node_block(sbi, &dn, XATTR_NODE_OFFSET); in write_all_xattrs()
112 get_node_info(sbi, xnid, &ni); in write_all_xattrs()
133 int f2fs_setxattr(struct f2fs_sb_info *sbi, nid_t ino, int index, const char *name, in f2fs_setxattr() argument
163 get_node_info(sbi, ino, &ni); in f2fs_setxattr()
169 base_addr = read_all_xattrs(sbi, inode); in f2fs_setxattr()
[all …]
Dmkquota.c66 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype) in quota_write_inode() argument
68 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in quota_write_inode()
69 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in quota_write_inode()
86 retval = quota_file_create(sbi, h, qtype); in quota_write_inode()
91 quota_file_close(sbi, h, 1); in quota_write_inode()
146 errcode_t quota_init_context(struct f2fs_sb_info *sbi) in quota_init_context() argument
148 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in quota_init_context()
149 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in quota_init_context()
177 ctx->sbi = sbi; in quota_init_context()
362 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi, in quota_compare_and_update() argument
[all …]
Dquotaio.h69 struct f2fs_sb_info *sbi; member
117 struct f2fs_sb_info *sbi; member
204 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h,
208 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h,
212 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h,
221 errcode_t quota_init_context(struct f2fs_sb_info *sbi);
225 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype);
229 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi,
Dfsck.h83 struct f2fs_sb_info sbi; member
149 static inline bool need_fsync_data_record(struct f2fs_sb_info *sbi) in need_fsync_data_record() argument
151 return !is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG) || in need_fsync_data_record()
179 void fsck_chk_checkpoint(struct f2fs_sb_info *sbi);
180 int fsck_chk_meta(struct f2fs_sb_info *sbi);
308 struct hardlink_cache_entry *f2fs_search_hardlink(struct f2fs_sb_info *sbi,
Dnode.h26 static inline unsigned int ADDRS_PER_PAGE(struct f2fs_sb_info *sbi, in ADDRS_PER_PAGE() argument
41 get_node_info(sbi, ino, &ni); in ADDRS_PER_PAGE()
138 static inline bool is_recoverable_dnode(struct f2fs_sb_info *sbi, in is_recoverable_dnode() argument
141 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in is_recoverable_dnode()
/external/llvm-project/llvm/test/MC/AVR/
Dinst-sbi.s7 sbi 3, 5
8 sbi 1, 1
9 sbi 7, 2
10 sbi 0, 0
11 sbi 0, 7
12 sbi 31, 0
13 sbi 31, 7
15 sbi main, 0
17 ; CHECK: sbi 3, 5 ; encoding: [0x1d,0x9a]
18 ; CHECK: sbi 1, 1 ; encoding: [0x09,0x9a]
[all …]
/external/erofs-utils/lib/
Dsuper.c14 static bool check_layout_compatibility(struct erofs_sb_info *sbi, in check_layout_compatibility() argument
19 sbi->feature_incompat = feature; in check_layout_compatibility()
50 sbi.feature_compat = le32_to_cpu(dsb->feature_compat); in erofs_read_superblock()
60 if (!check_layout_compatibility(&sbi, dsb)) in erofs_read_superblock()
63 sbi.blocks = le32_to_cpu(dsb->blocks); in erofs_read_superblock()
64 sbi.meta_blkaddr = le32_to_cpu(dsb->meta_blkaddr); in erofs_read_superblock()
65 sbi.xattr_blkaddr = le32_to_cpu(dsb->xattr_blkaddr); in erofs_read_superblock()
66 sbi.islotbits = EROFS_ISLOTBITS; in erofs_read_superblock()
67 sbi.root_nid = le16_to_cpu(dsb->root_nid); in erofs_read_superblock()
68 sbi.inos = le64_to_cpu(dsb->inos); in erofs_read_superblock()
[all …]
/external/deqp-deps/SPIRV-Tools/source/opt/
Dblock_merge_util.cpp151 auto sbi = bi; in MergeWithSuccessor() local
152 for (; sbi != func->end(); ++sbi) in MergeWithSuccessor()
153 if (sbi->id() == lab_id) break; in MergeWithSuccessor()
156 assert(sbi != func->end()); in MergeWithSuccessor()
159 for (auto& inst : *sbi) { in MergeWithSuccessor()
163 EliminateOpPhiInstructions(context, &*sbi); in MergeWithSuccessor()
166 bi->AddInstructions(&*sbi); in MergeWithSuccessor()
188 context->KillInst(sbi->GetLabelInst()); in MergeWithSuccessor()
189 (void)sbi.Erase(); in MergeWithSuccessor()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dblock_merge_util.cpp151 auto sbi = bi; in MergeWithSuccessor() local
152 for (; sbi != func->end(); ++sbi) in MergeWithSuccessor()
153 if (sbi->id() == lab_id) break; in MergeWithSuccessor()
156 assert(sbi != func->end()); in MergeWithSuccessor()
159 for (auto& inst : *sbi) { in MergeWithSuccessor()
163 EliminateOpPhiInstructions(context, &*sbi); in MergeWithSuccessor()
166 bi->AddInstructions(&*sbi); in MergeWithSuccessor()
188 context->KillInst(sbi->GetLabelInst()); in MergeWithSuccessor()
189 (void)sbi.Erase(); in MergeWithSuccessor()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dblock_merge_util.cpp146 auto sbi = bi; in MergeWithSuccessor() local
147 for (; sbi != func->end(); ++sbi) in MergeWithSuccessor()
148 if (sbi->id() == lab_id) break; in MergeWithSuccessor()
151 assert(sbi != func->end()); in MergeWithSuccessor()
154 for (auto& inst : *sbi) { in MergeWithSuccessor()
158 EliminateOpPhiInstructions(context, &*sbi); in MergeWithSuccessor()
161 bi->AddInstructions(&*sbi); in MergeWithSuccessor()
183 context->KillInst(sbi->GetLabelInst()); in MergeWithSuccessor()
184 (void)sbi.Erase(); in MergeWithSuccessor()
/external/erofs-utils/mkfs/
Dmain.c208 if (uuid_parse(optarg, sbi.uuid)) { in mkfs_parse_options_cfg()
294 .build_time = cpu_to_le64(sbi.build_time), in erofs_mkfs_update_super_block()
295 .build_time_nsec = cpu_to_le32(sbi.build_time_nsec), in erofs_mkfs_update_super_block()
297 .meta_blkaddr = sbi.meta_blkaddr, in erofs_mkfs_update_super_block()
298 .xattr_blkaddr = sbi.xattr_blkaddr, in erofs_mkfs_update_super_block()
299 .feature_incompat = cpu_to_le32(sbi.feature_incompat), in erofs_mkfs_update_super_block()
300 .feature_compat = cpu_to_le32(sbi.feature_compat & in erofs_mkfs_update_super_block()
310 memcpy(sb.uuid, sbi.uuid, sizeof(sb.uuid)); in erofs_mkfs_update_super_block()
385 sbi.feature_incompat = EROFS_FEATURE_INCOMPAT_LZ4_0PADDING; in erofs_mkfs_default_options()
386 sbi.feature_compat = EROFS_FEATURE_COMPAT_SB_CHKSUM; in erofs_mkfs_default_options()
[all …]
/external/erofs-utils/include/erofs/
Dinternal.h85 extern struct erofs_sb_info sbi;
89 return blknr_to_addr(sbi.meta_blkaddr) + (nid << sbi.islotbits); in iloc()
95 return sbi.feature_##compat & EROFS_FEATURE_##feature; \
99 sbi.feature_##compat |= EROFS_FEATURE_##feature; \
103 sbi.feature_##compat &= ~EROFS_FEATURE_##feature; \
/external/squashfs-tools/kernel/fs/squashfs/
Dsuper.c328 struct squashfs_sb_info *sbi = sb->s_fs_info; in squashfs_put_super() local
329 squashfs_cache_delete(sbi->block_cache); in squashfs_put_super()
330 squashfs_cache_delete(sbi->fragment_cache); in squashfs_put_super()
331 squashfs_cache_delete(sbi->read_page); in squashfs_put_super()
332 kfree(sbi->id_table); in squashfs_put_super()
333 kfree(sbi->fragment_index); in squashfs_put_super()
334 kfree(sbi->meta_index); in squashfs_put_super()
335 kfree(sbi->stream.workspace); in squashfs_put_super()

1234