Lines Matching refs:ubifs_info
1241 struct ubifs_info;
1244 typedef int (*ubifs_lpt_scan_callback)(struct ubifs_info *c,
1283 struct ubifs_info *c;
1291 int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad);
1835 struct ubifs_info { struct
2085 void ubifs_ro_mode(struct ubifs_info *c, int err); argument
2086 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs,
2088 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
2090 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len);
2091 int ubifs_leb_unmap(struct ubifs_info *c, int lnum);
2092 int ubifs_leb_map(struct ubifs_info *c, int lnum);
2093 int ubifs_is_mapped(const struct ubifs_info *c, int lnum);
2096 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf);
2097 int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len,
2101 int ubifs_write_node(struct ubifs_info *c, void *node, int len, int lnum,
2103 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum,
2105 void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad);
2106 void ubifs_prep_grp_node(struct ubifs_info *c, void *node, int len, int last);
2107 int ubifs_io_init(struct ubifs_info *c);
2108 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad);
2110 int ubifs_bg_wbufs_sync(struct ubifs_info *c);
2112 int ubifs_sync_wbufs_by_inode(struct ubifs_info *c, struct inode *inode);
2115 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum,
2118 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
2120 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
2122 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
2124 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
2126 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs,
2130 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud);
2131 void ubifs_create_buds_lists(struct ubifs_info *c);
2132 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
2133 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum);
2134 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum);
2135 int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum);
2136 int ubifs_log_end_commit(struct ubifs_info *c, int new_ltail_lnum);
2137 int ubifs_log_post_commit(struct ubifs_info *c, int old_ltail_lnum);
2138 int ubifs_consolidate_log(struct ubifs_info *c);
2141 int ubifs_jnl_update(struct ubifs_info *c, const struct inode *dir,
2144 int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode,
2146 int ubifs_jnl_write_inode(struct ubifs_info *c, const struct inode *inode);
2147 int ubifs_jnl_delete_inode(struct ubifs_info *c, const struct inode *inode);
2148 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir,
2152 int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode,
2154 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host,
2156 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
2160 int ubifs_budget_space(struct ubifs_info *c, struct ubifs_budget_req *req);
2161 void ubifs_release_budget(struct ubifs_info *c, struct ubifs_budget_req *req);
2162 void ubifs_release_dirty_inode_budget(struct ubifs_info *c,
2164 int ubifs_budget_inode_op(struct ubifs_info *c, struct inode *inode,
2166 void ubifs_release_ino_dirty(struct ubifs_info *c, struct inode *inode,
2168 void ubifs_cancel_ino_op(struct ubifs_info *c, struct inode *inode,
2170 long long ubifs_get_free_space(struct ubifs_info *c);
2171 long long ubifs_get_free_space_nolock(struct ubifs_info *c);
2172 int ubifs_calc_min_idx_lebs(struct ubifs_info *c);
2173 void ubifs_convert_page_budget(struct ubifs_info *c);
2174 long long ubifs_reported_space(const struct ubifs_info *c, long long free);
2175 long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs);
2178 int ubifs_find_free_space(struct ubifs_info *c, int min_space, int *offs,
2180 int ubifs_find_free_leb_for_idx(struct ubifs_info *c);
2181 int ubifs_find_dirty_leb(struct ubifs_info *c, struct ubifs_lprops *ret_lp,
2183 int ubifs_find_dirty_idx_leb(struct ubifs_info *c);
2184 int ubifs_save_dirty_idx_lnums(struct ubifs_info *c);
2187 int ubifs_lookup_level0(struct ubifs_info *c, const union ubifs_key *key,
2189 int ubifs_tnc_lookup_nm(struct ubifs_info *c, const union ubifs_key *key,
2191 int ubifs_tnc_locate(struct ubifs_info *c, const union ubifs_key *key,
2193 int ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum,
2195 int ubifs_tnc_replace(struct ubifs_info *c, const union ubifs_key *key,
2197 int ubifs_tnc_add_nm(struct ubifs_info *c, const union ubifs_key *key,
2199 int ubifs_tnc_remove(struct ubifs_info *c, const union ubifs_key *key);
2200 int ubifs_tnc_remove_nm(struct ubifs_info *c, const union ubifs_key *key,
2202 int ubifs_tnc_remove_range(struct ubifs_info *c, union ubifs_key *from_key,
2204 int ubifs_tnc_remove_ino(struct ubifs_info *c, ino_t inum);
2205 struct ubifs_dent_node *ubifs_tnc_next_ent(struct ubifs_info *c,
2208 void ubifs_tnc_close(struct ubifs_info *c);
2209 int ubifs_tnc_has_node(struct ubifs_info *c, union ubifs_key *key, int level,
2211 int ubifs_dirty_idx_node(struct ubifs_info *c, union ubifs_key *key, int level,
2214 void destroy_old_idx(struct ubifs_info *c);
2215 int is_idx_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, int level,
2217 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode);
2218 int ubifs_tnc_get_bu_keys(struct ubifs_info *c, struct bu_info *bu);
2219 int ubifs_tnc_bulk_read(struct ubifs_info *c, struct bu_info *bu);
2224 int ubifs_search_zbranch(const struct ubifs_info *c,
2230 struct ubifs_znode *ubifs_load_znode(struct ubifs_info *c,
2233 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr,
2237 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot);
2238 int ubifs_tnc_end_commit(struct ubifs_info *c);
2250 void ubifs_commit_required(struct ubifs_info *c);
2251 void ubifs_request_bg_commit(struct ubifs_info *c);
2252 int ubifs_run_commit(struct ubifs_info *c);
2253 void ubifs_recovery_commit(struct ubifs_info *c);
2254 int ubifs_gc_should_commit(struct ubifs_info *c);
2255 void ubifs_wait_for_commit(struct ubifs_info *c);
2258 int ubifs_read_master(struct ubifs_info *c);
2259 int ubifs_write_master(struct ubifs_info *c);
2262 int ubifs_read_superblock(struct ubifs_info *c);
2263 struct ubifs_sb_node *ubifs_read_sb_node(struct ubifs_info *c);
2264 int ubifs_write_sb_node(struct ubifs_info *c, struct ubifs_sb_node *sup);
2265 int ubifs_fixup_free_space(struct ubifs_info *c);
2268 int ubifs_validate_entry(struct ubifs_info *c,
2270 int ubifs_replay_journal(struct ubifs_info *c);
2273 int ubifs_garbage_collect(struct ubifs_info *c, int anyway);
2274 int ubifs_gc_start_commit(struct ubifs_info *c);
2275 int ubifs_gc_end_commit(struct ubifs_info *c);
2276 void ubifs_destroy_idx_gc(struct ubifs_info *c);
2277 int ubifs_get_idx_gc_leb(struct ubifs_info *c);
2278 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp);
2281 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum);
2282 void ubifs_delete_orphan(struct ubifs_info *c, ino_t inum);
2283 int ubifs_orphan_start_commit(struct ubifs_info *c);
2284 int ubifs_orphan_end_commit(struct ubifs_info *c);
2285 int ubifs_mount_orphans(struct ubifs_info *c, int unclean, int read_only);
2286 int ubifs_clear_orphans(struct ubifs_info *c);
2289 int ubifs_calc_lpt_geom(struct ubifs_info *c);
2290 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
2292 int ubifs_lpt_init(struct ubifs_info *c, int rd, int wr);
2293 struct ubifs_lprops *ubifs_lpt_lookup(struct ubifs_info *c, int lnum);
2294 struct ubifs_lprops *ubifs_lpt_lookup_dirty(struct ubifs_info *c, int lnum);
2295 int ubifs_lpt_scan_nolock(struct ubifs_info *c, int start_lnum, int end_lnum,
2299 void ubifs_pack_lsave(struct ubifs_info *c, void *buf, int *lsave);
2300 void ubifs_pack_ltab(struct ubifs_info *c, void *buf,
2302 void ubifs_pack_pnode(struct ubifs_info *c, void *buf,
2304 void ubifs_pack_nnode(struct ubifs_info *c, void *buf,
2306 struct ubifs_pnode *ubifs_get_pnode(struct ubifs_info *c,
2308 struct ubifs_nnode *ubifs_get_nnode(struct ubifs_info *c,
2310 int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip);
2311 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty);
2312 void ubifs_add_nnode_dirt(struct ubifs_info *c, struct ubifs_nnode *nnode);
2314 struct ubifs_nnode *ubifs_first_nnode(struct ubifs_info *c, int *hght);
2316 int ubifs_unpack_nnode(const struct ubifs_info *c, void *buf,
2320 int ubifs_lpt_start_commit(struct ubifs_info *c);
2321 int ubifs_lpt_end_commit(struct ubifs_info *c);
2322 int ubifs_lpt_post_commit(struct ubifs_info *c);
2323 void ubifs_lpt_free(struct ubifs_info *c, int wr_only);
2326 const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c,
2330 void ubifs_get_lp_stats(struct ubifs_info *c, struct ubifs_lp_stats *lst);
2331 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops,
2333 void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops,
2335 void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops);
2336 int ubifs_categorize_lprops(const struct ubifs_info *c,
2338 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
2340 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
2342 int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp);
2343 const struct ubifs_lprops *ubifs_fast_find_free(struct ubifs_info *c);
2344 const struct ubifs_lprops *ubifs_fast_find_empty(struct ubifs_info *c);
2345 const struct ubifs_lprops *ubifs_fast_find_freeable(struct ubifs_info *c);
2346 const struct ubifs_lprops *ubifs_fast_find_frdi_idx(struct ubifs_info *c);
2347 int ubifs_calc_dark(const struct ubifs_info *c, int spc);
2354 struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir,
2374 int ubifs_recover_master_node(struct ubifs_info *c);
2375 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c);
2376 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
2378 struct ubifs_scan_leb *ubifs_recover_log_leb(struct ubifs_info *c, int lnum,
2380 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf);
2381 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf);
2382 int ubifs_rcvry_gc_commit(struct ubifs_info *c);
2383 int ubifs_recover_size_accum(struct ubifs_info *c, union ubifs_key *key,
2385 int ubifs_recover_size(struct ubifs_info *c);
2386 void ubifs_destroy_size_tree(struct ubifs_info *c);
2398 void ubifs_compress(const struct ubifs_info *c, const void *in_buf, int in_len,
2400 int ubifs_decompress(const struct ubifs_info *c, const void *buf, int len,
2408 void ubifs_umount(struct ubifs_info *c);