/external/f2fs-tools/fsck/ |
D | f2fs.h | 295 static inline struct f2fs_super_block *F2FS_RAW_SUPER(struct f2fs_sb_info *sbi) in F2FS_RAW_SUPER() argument 297 return (struct f2fs_super_block *)(sbi->raw_super); in F2FS_RAW_SUPER() 300 static inline struct f2fs_checkpoint *F2FS_CKPT(struct f2fs_sb_info *sbi) in F2FS_CKPT() argument 302 return (struct f2fs_checkpoint *)(sbi->ckpt); in F2FS_CKPT() 305 static inline struct f2fs_fsck *F2FS_FSCK(struct f2fs_sb_info *sbi) in F2FS_FSCK() argument 307 return (struct f2fs_fsck *)(sbi->fsck); in F2FS_FSCK() 310 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I() argument 312 return (struct f2fs_nm_info *)(sbi->nm_info); in NM_I() 315 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() argument 317 return (struct f2fs_sm_info *)(sbi->sm_info); in SM_I() [all …]
|
D | mount.c | 36 static int get_device_idx(struct f2fs_sb_info *sbi, uint32_t segno) in get_device_idx() argument 41 seg_start_blkaddr = SM_I(sbi)->main_blkaddr + in get_device_idx() 50 static int get_zone_idx_from_dev(struct f2fs_sb_info *sbi, in get_zone_idx_from_dev() argument 53 block_t seg_start_blkaddr = START_BLOCK(sbi, segno); in get_zone_idx_from_dev() 56 log_base_2(sbi->segs_per_sec * sbi->blocks_per_seg); in get_zone_idx_from_dev() 59 bool is_usable_seg(struct f2fs_sb_info *sbi, unsigned int segno) in is_usable_seg() argument 61 unsigned int secno = segno / sbi->segs_per_sec; in is_usable_seg() 62 block_t seg_start = START_BLOCK(sbi, segno); in is_usable_seg() 63 block_t blocks_per_sec = sbi->blocks_per_seg * sbi->segs_per_sec; in is_usable_seg() 64 unsigned int dev_idx = get_device_idx(sbi, segno); in is_usable_seg() [all …]
|
D | fsck.c | 19 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 …]
|
D | defrag.c | 12 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 …]
|
D | resize.c | 168 static void migrate_main(struct f2fs_sb_info *sbi, unsigned int offset) in migrate_main() argument 178 for (i = MAIN_SEGS(sbi) - 1; i >= 0; i--) { in migrate_main() 179 se = get_seg_entry(sbi, i); in migrate_main() 183 for (j = sbi->blocks_per_seg - 1; j >= 0; j--) { in migrate_main() 187 from = START_BLOCK(sbi, i) + j; in migrate_main() 195 get_sum_entry(sbi, from, &sum); in migrate_main() 198 update_data_blkaddr(sbi, le32_to_cpu(sum.nid), in migrate_main() 201 update_nat_blkaddr(sbi, 0, in migrate_main() 207 START_BLOCK(sbi, 0), in migrate_main() 208 START_BLOCK(sbi, 0) + offset); in migrate_main() [all …]
|
D | dump.c | 37 void nat_dump(struct f2fs_sb_info *sbi, nid_t start_nat, nid_t end_nat) in nat_dump() argument 57 if(nid == 0 || nid == F2FS_NODE_INO(sbi) || in nat_dump() 58 nid == F2FS_META_INO(sbi)) in nat_dump() 62 block_addr = current_nat_addr(sbi, nid, &pack); in nat_dump() 64 if (lookup_nat_in_journal(sbi, nid, &raw_nat) >= 0) { in nat_dump() 109 void sit_dump(struct f2fs_sb_info *sbi, unsigned int start_sit, in sit_dump() argument 113 struct sit_info *sit_i = SIT_I(sbi); in sit_dump() 131 se = get_seg_entry(sbi, segno); in sit_dump() 169 SM_I(sbi)->main_segments - free_segs, in sit_dump() 177 void ssa_dump(struct f2fs_sb_info *sbi, int start_ssa, int end_ssa) in ssa_dump() argument [all …]
|
D | segment.c | 23 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() 35 if (fsck->chk.valid_blk_cnt >= sbi->user_block_count) { in reserve_new_block() 40 sbi->total_valid_node_count) { in reserve_new_block() 45 if (sbi->total_valid_block_count >= in reserve_new_block() 46 sbi->user_block_count) { in reserve_new_block() 50 if (is_node && sbi->total_valid_node_count >= in reserve_new_block() 51 sbi->total_node_count) { in reserve_new_block() 58 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block() 60 if (sbi->raw_super->feature & cpu_to_le32(F2FS_FEATURE_RO)) { in reserve_new_block() [all …]
|
D | main.c | 824 static int do_fsck(struct f2fs_sb_info *sbi) in do_fsck() argument 826 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in do_fsck() 832 fsck_init(sbi); in do_fsck() 836 fsck_chk_and_fix_write_pointers(sbi); in do_fsck() 838 fsck_chk_curseg_info(sbi); in do_fsck() 843 if (fsck_chk_meta(sbi)) { in do_fsck() 849 fsck_free(sbi); in do_fsck() 871 fsck_chk_checkpoint(sbi); in do_fsck() 873 fsck_chk_quota_node(sbi); in do_fsck() 881 ret = quota_init_context(sbi); in do_fsck() [all …]
|
D | sload.c | 46 static int f2fs_make_directory(struct f2fs_sb_info *sbi, in f2fs_make_directory() argument 54 ret = f2fs_mkdir(sbi, de + i); in f2fs_make_directory() 56 ret = f2fs_create(sbi, de + i); in f2fs_make_directory() 58 ret = f2fs_symlink(sbi, de + i); in f2fs_make_directory() 69 static int set_selinux_xattr(struct f2fs_sb_info *sbi, const char *path, in set_selinux_xattr() argument 94 inode_set_selinux(sbi, ino, secontext); in set_selinux_xattr() 201 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory() argument 242 ret = f2fs_make_directory(sbi, entries, dentries); in build_directory() 248 f2fs_build_file(sbi, dentries + i); in build_directory() 260 ret = build_directory(sbi, subdir_full_path, in build_directory() [all …]
|
D | node.c | 19 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() 43 int f2fs_rebuild_qf_inode(struct f2fs_sb_info *sbi, int qtype) in f2fs_rebuild_qf_inode() argument 46 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in f2fs_rebuild_qf_inode() 47 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in f2fs_rebuild_qf_inode() 66 get_node_info(sbi, ino, &ni); in f2fs_rebuild_qf_inode() 68 ret = reserve_new_block(sbi, &blkaddr, &sum, CURSEG_HOT_NODE, 1); in f2fs_rebuild_qf_inode() 79 update_nat_blkaddr(sbi, ino, ino, blkaddr); in f2fs_rebuild_qf_inode() [all …]
|
D | dir.c | 110 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 …]
|
D | quotaio.c | 89 written = f2fs_write(qf->sbi, qf->ino, buf, size, offset); in quota_write_nomount() 100 return f2fs_read(qf->sbi, qf->ino, buf, size, offset); in quota_read_nomount() 106 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_open() argument 109 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in quota_file_open() 110 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in quota_file_open() 124 (void) quota_file_close(sbi, h, 0); in quota_file_open() 134 h->qh_qf.sbi = sbi; in quota_file_open() 166 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_create() argument 169 struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); in quota_file_create() 174 h->qh_qf.sbi = sbi; in quota_file_create() [all …]
|
D | xattr.c | 20 void *read_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode, in read_all_xattrs() argument 36 ret = fsck_sanity_check_nid(sbi, xnid, node_blk, in read_all_xattrs() 54 get_node_info(sbi, xnid, &ni); in read_all_xattrs() 92 void write_all_xattrs(struct f2fs_sb_info *sbi, in write_all_xattrs() argument 111 f2fs_alloc_nid(sbi, &new_nid); in write_all_xattrs() 115 blkaddr = new_node_block(sbi, &dn, XATTR_NODE_OFFSET); in write_all_xattrs() 121 get_node_info(sbi, xnid, &ni); in write_all_xattrs() 142 int f2fs_setxattr(struct f2fs_sb_info *sbi, nid_t ino, int index, const char *name, in f2fs_setxattr() argument 173 get_node_info(sbi, ino, &ni); in f2fs_setxattr() 179 base_addr = read_all_xattrs(sbi, inode, true); in f2fs_setxattr() [all …]
|
D | mkquota.c | 66 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 …]
|
D | quotaio.h | 68 struct f2fs_sb_info *sbi; member 116 struct f2fs_sb_info *sbi; member 201 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h, 205 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h, 209 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h, 218 errcode_t quota_init_context(struct f2fs_sb_info *sbi); 222 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype); 226 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi,
|
D | fsck.h | 90 struct f2fs_sb_info sbi; member 159 static inline bool need_fsync_data_record(struct f2fs_sb_info *sbi) in need_fsync_data_record() argument 161 return !is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG) || in need_fsync_data_record() 193 void fsck_chk_checkpoint(struct f2fs_sb_info *sbi); 194 int fsck_chk_meta(struct f2fs_sb_info *sbi); 276 extern void dump_node_scan_disk(struct f2fs_sb_info *sbi, nid_t nid); 298 int f2fs_rebuild_qf_inode(struct f2fs_sb_info *sbi, int qtype); 327 struct hardlink_cache_entry *f2fs_search_hardlink(struct f2fs_sb_info *sbi, 332 void write_all_xattrs(struct f2fs_sb_info *sbi,
|
/external/erofs-utils/lib/ |
D | super.c | 10 static bool check_layout_compatibility(struct erofs_sb_info *sbi, in check_layout_compatibility() argument 15 sbi->feature_incompat = feature; in check_layout_compatibility() 26 static int erofs_init_devices(struct erofs_sb_info *sbi, in erofs_init_devices() argument 32 sbi->total_blocks = sbi->primarydevice_blocks; in erofs_init_devices() 39 if (ondisk_extradevs != sbi->extra_devices) { in erofs_init_devices() 41 ondisk_extradevs, sbi->extra_devices); in erofs_init_devices() 47 sbi->device_id_mask = roundup_pow_of_two(ondisk_extradevs + 1) - 1; in erofs_init_devices() 48 sbi->devs = calloc(ondisk_extradevs, sizeof(*sbi->devs)); in erofs_init_devices() 58 sbi->devs[i].mapped_blkaddr = dis.mapped_blkaddr; in erofs_init_devices() 59 sbi->total_blocks += dis.blocks; in erofs_init_devices() [all …]
|
D | data.c | 123 sbi.device_id_mask; in erofs_map_blocks() 133 int erofs_map_dev(struct erofs_sb_info *sbi, struct erofs_map_dev *map) in erofs_map_dev() argument 139 if (sbi->extra_devices < map->m_deviceid) in erofs_map_dev() 141 } else if (sbi->extra_devices) { in erofs_map_dev() 142 for (id = 0; id < sbi->extra_devices; ++id) { in erofs_map_dev() 145 dif = sbi->devs + id; in erofs_map_dev() 186 ret = erofs_map_dev(&sbi, &mdev); in erofs_read_raw_data() 245 ret = erofs_map_dev(&sbi, &mdev); in z_erofs_read_data()
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_raven_AOSP.MASTER_5.10.43/events/ext4/ext4_fc_stats/ |
D | format | 10 field:struct ext4_sb_info * sbi; offset:16; size:8; signed:0; 14 …sbi->s_fc_stats.fc_ineligible_reason_count[EXT4_FC_REASON_XATTR], __print_symbolic(EXT4_FC_REASON_…
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | block_merge_util.cpp | 167 auto sbi = bi; in MergeWithSuccessor() local 168 for (; sbi != func->end(); ++sbi) in MergeWithSuccessor() 169 if (sbi->id() == lab_id) break; in MergeWithSuccessor() 172 assert(sbi != func->end()); in MergeWithSuccessor() 174 if (sbi->tail()->opcode() == spv::Op::OpSwitch && in MergeWithSuccessor() 175 sbi->MergeBlockIdIfAny() != 0) { in MergeWithSuccessor() 180 for (auto& inst : *sbi) { in MergeWithSuccessor() 184 EliminateOpPhiInstructions(context, &*sbi); in MergeWithSuccessor() 187 bi->AddInstructions(&*sbi); in MergeWithSuccessor() 216 context->KillInst(sbi->GetLabelInst()); in MergeWithSuccessor() [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | block_merge_util.cpp | 167 auto sbi = bi; in MergeWithSuccessor() local 168 for (; sbi != func->end(); ++sbi) in MergeWithSuccessor() 169 if (sbi->id() == lab_id) break; in MergeWithSuccessor() 172 assert(sbi != func->end()); in MergeWithSuccessor() 174 if (sbi->tail()->opcode() == spv::Op::OpSwitch && in MergeWithSuccessor() 175 sbi->MergeBlockIdIfAny() != 0) { in MergeWithSuccessor() 180 for (auto& inst : *sbi) { in MergeWithSuccessor() 184 EliminateOpPhiInstructions(context, &*sbi); in MergeWithSuccessor() 187 bi->AddInstructions(&*sbi); in MergeWithSuccessor() 216 context->KillInst(sbi->GetLabelInst()); in MergeWithSuccessor() [all …]
|
/external/erofs-utils/mkfs/ |
D | main.c | 264 if (uuid_parse(optarg, sbi.uuid)) { in mkfs_parse_options_cfg() 446 .inos = cpu_to_le64(sbi.inos), in erofs_mkfs_update_super_block() 447 .build_time = cpu_to_le64(sbi.build_time), in erofs_mkfs_update_super_block() 448 .build_time_nsec = cpu_to_le32(sbi.build_time_nsec), in erofs_mkfs_update_super_block() 450 .meta_blkaddr = sbi.meta_blkaddr, in erofs_mkfs_update_super_block() 451 .xattr_blkaddr = sbi.xattr_blkaddr, in erofs_mkfs_update_super_block() 452 .feature_incompat = cpu_to_le32(sbi.feature_incompat), in erofs_mkfs_update_super_block() 453 .feature_compat = cpu_to_le32(sbi.feature_compat & in erofs_mkfs_update_super_block() 455 .extra_devices = cpu_to_le16(sbi.extra_devices), in erofs_mkfs_update_super_block() 456 .devt_slotoff = cpu_to_le16(sbi.devt_slotoff), in erofs_mkfs_update_super_block() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | block_merge_util.cpp | 146 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() 190 context->KillInst(sbi->GetLabelInst()); in MergeWithSuccessor() 191 (void)sbi.Erase(); in MergeWithSuccessor()
|
/external/erofs-utils/dump/ |
D | main.c | 157 ++sbi.extra_devices; in erofsdump_parse_options_cfg() 433 err = erofs_map_dev(&sbi, &mdev); in erofsdump_show_fileinfo() 541 .de_nid = sbi.root_nid, in erofsdump_print_statistic() 563 time_t time = sbi.build_time; in erofsdump_show_superblock() 570 sbi.total_blocks | 0ULL); in erofsdump_show_superblock() 572 sbi.meta_blkaddr); in erofsdump_show_superblock() 574 sbi.xattr_blkaddr); in erofsdump_show_superblock() 576 sbi.root_nid | 0ULL); in erofsdump_show_superblock() 578 sbi.inos | 0ULL); in erofsdump_show_superblock() 584 sbi.feature_compat : in erofsdump_show_superblock() [all …]
|
/external/erofs-utils/include/erofs/ |
D | internal.h | 108 extern struct erofs_sb_info sbi; 112 return blknr_to_addr(sbi.meta_blkaddr) + (nid << sbi.islotbits); in iloc() 118 return sbi.feature_##compat & EROFS_FEATURE_##feature; \ 122 sbi.feature_##compat |= EROFS_FEATURE_##feature; \ 126 sbi.feature_##compat &= ~EROFS_FEATURE_##feature; \ 332 int erofs_map_dev(struct erofs_sb_info *sbi, struct erofs_map_dev *map);
|