Lines Matching refs:ubifs_info

1240 struct ubifs_info;
1243 typedef int (*ubifs_lpt_scan_callback)(struct ubifs_info *c,
1282 struct ubifs_info *c;
1290 int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad);
1834 struct ubifs_info { struct
2084 void ubifs_ro_mode(struct ubifs_info *c, int err); argument
2085 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs,
2087 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
2089 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len);
2090 int ubifs_leb_unmap(struct ubifs_info *c, int lnum);
2091 int ubifs_leb_map(struct ubifs_info *c, int lnum);
2092 int ubifs_is_mapped(const struct ubifs_info *c, int lnum);
2095 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf);
2096 int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len,
2100 int ubifs_write_node(struct ubifs_info *c, void *node, int len, int lnum,
2102 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum,
2104 void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad);
2105 void ubifs_prep_grp_node(struct ubifs_info *c, void *node, int len, int last);
2106 int ubifs_io_init(struct ubifs_info *c);
2107 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad);
2109 int ubifs_bg_wbufs_sync(struct ubifs_info *c);
2111 int ubifs_sync_wbufs_by_inode(struct ubifs_info *c, struct inode *inode);
2114 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum,
2117 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
2119 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
2121 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
2123 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
2125 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs,
2129 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud);
2130 void ubifs_create_buds_lists(struct ubifs_info *c);
2131 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
2132 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum);
2133 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum);
2134 int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum);
2135 int ubifs_log_end_commit(struct ubifs_info *c, int new_ltail_lnum);
2136 int ubifs_log_post_commit(struct ubifs_info *c, int old_ltail_lnum);
2137 int ubifs_consolidate_log(struct ubifs_info *c);
2140 int ubifs_jnl_update(struct ubifs_info *c, const struct inode *dir,
2143 int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode,
2145 int ubifs_jnl_write_inode(struct ubifs_info *c, const struct inode *inode);
2146 int ubifs_jnl_delete_inode(struct ubifs_info *c, const struct inode *inode);
2147 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir,
2151 int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode,
2153 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host,
2155 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
2159 int ubifs_budget_space(struct ubifs_info *c, struct ubifs_budget_req *req);
2160 void ubifs_release_budget(struct ubifs_info *c, struct ubifs_budget_req *req);
2161 void ubifs_release_dirty_inode_budget(struct ubifs_info *c,
2163 int ubifs_budget_inode_op(struct ubifs_info *c, struct inode *inode,
2165 void ubifs_release_ino_dirty(struct ubifs_info *c, struct inode *inode,
2167 void ubifs_cancel_ino_op(struct ubifs_info *c, struct inode *inode,
2169 long long ubifs_get_free_space(struct ubifs_info *c);
2170 long long ubifs_get_free_space_nolock(struct ubifs_info *c);
2171 int ubifs_calc_min_idx_lebs(struct ubifs_info *c);
2172 void ubifs_convert_page_budget(struct ubifs_info *c);
2173 long long ubifs_reported_space(const struct ubifs_info *c, long long free);
2174 long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs);
2177 int ubifs_find_free_space(struct ubifs_info *c, int min_space, int *offs,
2179 int ubifs_find_free_leb_for_idx(struct ubifs_info *c);
2180 int ubifs_find_dirty_leb(struct ubifs_info *c, struct ubifs_lprops *ret_lp,
2182 int ubifs_find_dirty_idx_leb(struct ubifs_info *c);
2183 int ubifs_save_dirty_idx_lnums(struct ubifs_info *c);
2186 int ubifs_lookup_level0(struct ubifs_info *c, const union ubifs_key *key,
2188 int ubifs_tnc_lookup_nm(struct ubifs_info *c, const union ubifs_key *key,
2190 int ubifs_tnc_locate(struct ubifs_info *c, const union ubifs_key *key,
2192 int ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum,
2194 int ubifs_tnc_replace(struct ubifs_info *c, const union ubifs_key *key,
2196 int ubifs_tnc_add_nm(struct ubifs_info *c, const union ubifs_key *key,
2198 int ubifs_tnc_remove(struct ubifs_info *c, const union ubifs_key *key);
2199 int ubifs_tnc_remove_nm(struct ubifs_info *c, const union ubifs_key *key,
2201 int ubifs_tnc_remove_range(struct ubifs_info *c, union ubifs_key *from_key,
2203 int ubifs_tnc_remove_ino(struct ubifs_info *c, ino_t inum);
2204 struct ubifs_dent_node *ubifs_tnc_next_ent(struct ubifs_info *c,
2207 void ubifs_tnc_close(struct ubifs_info *c);
2208 int ubifs_tnc_has_node(struct ubifs_info *c, union ubifs_key *key, int level,
2210 int ubifs_dirty_idx_node(struct ubifs_info *c, union ubifs_key *key, int level,
2213 void destroy_old_idx(struct ubifs_info *c);
2214 int is_idx_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, int level,
2216 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode);
2217 int ubifs_tnc_get_bu_keys(struct ubifs_info *c, struct bu_info *bu);
2218 int ubifs_tnc_bulk_read(struct ubifs_info *c, struct bu_info *bu);
2223 int ubifs_search_zbranch(const struct ubifs_info *c,
2229 struct ubifs_znode *ubifs_load_znode(struct ubifs_info *c,
2232 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr,
2236 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot);
2237 int ubifs_tnc_end_commit(struct ubifs_info *c);
2249 void ubifs_commit_required(struct ubifs_info *c);
2250 void ubifs_request_bg_commit(struct ubifs_info *c);
2251 int ubifs_run_commit(struct ubifs_info *c);
2252 void ubifs_recovery_commit(struct ubifs_info *c);
2253 int ubifs_gc_should_commit(struct ubifs_info *c);
2254 void ubifs_wait_for_commit(struct ubifs_info *c);
2257 int ubifs_read_master(struct ubifs_info *c);
2258 int ubifs_write_master(struct ubifs_info *c);
2261 int ubifs_read_superblock(struct ubifs_info *c);
2262 struct ubifs_sb_node *ubifs_read_sb_node(struct ubifs_info *c);
2263 int ubifs_write_sb_node(struct ubifs_info *c, struct ubifs_sb_node *sup);
2264 int ubifs_fixup_free_space(struct ubifs_info *c);
2267 int ubifs_validate_entry(struct ubifs_info *c,
2269 int ubifs_replay_journal(struct ubifs_info *c);
2272 int ubifs_garbage_collect(struct ubifs_info *c, int anyway);
2273 int ubifs_gc_start_commit(struct ubifs_info *c);
2274 int ubifs_gc_end_commit(struct ubifs_info *c);
2275 void ubifs_destroy_idx_gc(struct ubifs_info *c);
2276 int ubifs_get_idx_gc_leb(struct ubifs_info *c);
2277 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp);
2280 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum);
2281 void ubifs_delete_orphan(struct ubifs_info *c, ino_t inum);
2282 int ubifs_orphan_start_commit(struct ubifs_info *c);
2283 int ubifs_orphan_end_commit(struct ubifs_info *c);
2284 int ubifs_mount_orphans(struct ubifs_info *c, int unclean, int read_only);
2285 int ubifs_clear_orphans(struct ubifs_info *c);
2288 int ubifs_calc_lpt_geom(struct ubifs_info *c);
2289 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
2291 int ubifs_lpt_init(struct ubifs_info *c, int rd, int wr);
2292 struct ubifs_lprops *ubifs_lpt_lookup(struct ubifs_info *c, int lnum);
2293 struct ubifs_lprops *ubifs_lpt_lookup_dirty(struct ubifs_info *c, int lnum);
2294 int ubifs_lpt_scan_nolock(struct ubifs_info *c, int start_lnum, int end_lnum,
2298 void ubifs_pack_lsave(struct ubifs_info *c, void *buf, int *lsave);
2299 void ubifs_pack_ltab(struct ubifs_info *c, void *buf,
2301 void ubifs_pack_pnode(struct ubifs_info *c, void *buf,
2303 void ubifs_pack_nnode(struct ubifs_info *c, void *buf,
2305 struct ubifs_pnode *ubifs_get_pnode(struct ubifs_info *c,
2307 struct ubifs_nnode *ubifs_get_nnode(struct ubifs_info *c,
2309 int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip);
2310 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty);
2311 void ubifs_add_nnode_dirt(struct ubifs_info *c, struct ubifs_nnode *nnode);
2313 struct ubifs_nnode *ubifs_first_nnode(struct ubifs_info *c, int *hght);
2315 int ubifs_unpack_nnode(const struct ubifs_info *c, void *buf,
2319 int ubifs_lpt_start_commit(struct ubifs_info *c);
2320 int ubifs_lpt_end_commit(struct ubifs_info *c);
2321 int ubifs_lpt_post_commit(struct ubifs_info *c);
2322 void ubifs_lpt_free(struct ubifs_info *c, int wr_only);
2325 const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c,
2329 void ubifs_get_lp_stats(struct ubifs_info *c, struct ubifs_lp_stats *lst);
2330 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops,
2332 void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops,
2334 void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops);
2335 int ubifs_categorize_lprops(const struct ubifs_info *c,
2337 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
2339 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
2341 int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp);
2342 const struct ubifs_lprops *ubifs_fast_find_free(struct ubifs_info *c);
2343 const struct ubifs_lprops *ubifs_fast_find_empty(struct ubifs_info *c);
2344 const struct ubifs_lprops *ubifs_fast_find_freeable(struct ubifs_info *c);
2345 const struct ubifs_lprops *ubifs_fast_find_frdi_idx(struct ubifs_info *c);
2346 int ubifs_calc_dark(const struct ubifs_info *c, int spc);
2353 struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir,
2373 int ubifs_recover_master_node(struct ubifs_info *c);
2374 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c);
2375 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
2377 struct ubifs_scan_leb *ubifs_recover_log_leb(struct ubifs_info *c, int lnum,
2379 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf);
2380 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf);
2381 int ubifs_rcvry_gc_commit(struct ubifs_info *c);
2382 int ubifs_recover_size_accum(struct ubifs_info *c, union ubifs_key *key,
2384 int ubifs_recover_size(struct ubifs_info *c);
2385 void ubifs_destroy_size_tree(struct ubifs_info *c);
2397 void ubifs_compress(const struct ubifs_info *c, const void *in_buf, int in_len,
2399 int ubifs_decompress(const struct ubifs_info *c, const void *buf, int len,
2407 void ubifs_umount(struct ubifs_info *c);