/fs/jffs2/ |
D | os-linux.h | 25 #define OFNI_BS_2SFFJ(c) ((struct super_block *)c->os_priv) argument 63 #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & SB_RDONLY) argument 70 #define jffs2_can_mark_obsolete(c) (0) argument 72 #define jffs2_can_mark_obsolete(c) (1) argument 75 #define jffs2_is_writebuffered(c) (0) argument 76 #define jffs2_cleanmarker_oob(c) (0) argument 77 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) argument 79 #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, b… argument 80 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf)) argument 81 #define jffs2_flush_wbuf_pad(c) ({ do{} while(0); (void)(c), 0; }) argument [all …]
|
D | wbuf.c | 48 static int jffs2_wbuf_pending_for_ino(struct jffs2_sb_info *c, uint32_t ino) in jffs2_wbuf_pending_for_ino() 69 static void jffs2_clear_wbuf_ino_list(struct jffs2_sb_info *c) in jffs2_clear_wbuf_ino_list() 85 static void jffs2_wbuf_dirties_inode(struct jffs2_sb_info *c, uint32_t ino) in jffs2_wbuf_dirties_inode() 108 static inline void jffs2_refile_wbuf_blocks(struct jffs2_sb_info *c) in jffs2_refile_wbuf_blocks() 141 static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_emp… in jffs2_block_refile() 182 static struct jffs2_raw_node_ref **jffs2_incore_replace_raw(struct jffs2_sb_info *c, in jffs2_incore_replace_raw() 230 static int jffs2_verify_write(struct jffs2_sb_info *c, unsigned char *buf, in jffs2_verify_write() 269 #define jffs2_verify_write(c,b,o) (0) argument 275 static void jffs2_wbuf_recover(struct jffs2_sb_info *c) in jffs2_wbuf_recover() 580 static int __jffs2_flush_wbuf(struct jffs2_sb_info *c, int pad) in __jffs2_flush_wbuf() [all …]
|
D | nodelist.c | 26 void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full… in jffs2_add_fd_to_list() 59 uint32_t jffs2_truncate_fragtree(struct jffs2_sb_info *c, struct rb_root *list, uint32_t size) in jffs2_truncate_fragtree() 101 static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, in jffs2_obsolete_node_frag() 169 static int no_overlapping_node(struct jffs2_sb_info *c, struct rb_root *root, in no_overlapping_node() 215 static int jffs2_add_frag_to_fragtree(struct jffs2_sb_info *c, struct rb_root *root, struct jffs2_n… in jffs2_add_frag_to_fragtree() 363 int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2… in jffs2_add_full_dnode_to_inode() 408 void jffs2_set_inocache_state(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state) in jffs2_set_inocache_state() 421 struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino) in jffs2_get_ino_cache() 436 void jffs2_add_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *new) in jffs2_add_ino_cache() 457 void jffs2_del_ino_cache(struct jffs2_sb_info *c, struct jffs2_inode_cache *old) in jffs2_del_ino_cache() [all …]
|
D | xattr.c | 71 static int is_xattr_datum_unchecked(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in is_xattr_datum_unchecked() 87 static void unload_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in unload_xattr_datum() 102 static void reclaim_xattr_datum(struct jffs2_sb_info *c) in reclaim_xattr_datum() 132 static int do_verify_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in do_verify_xattr_datum() 204 static int do_load_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in do_load_xattr_datum() 263 static int load_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in load_xattr_datum() 284 static int save_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in save_xattr_datum() 336 static struct jffs2_xattr_datum *create_xattr_datum(struct jffs2_sb_info *c, in create_xattr_datum() 404 static void unrefer_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in unrefer_xattr_datum() 444 static int verify_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref) in verify_xattr_ref() [all …]
|
D | build.c | 27 first_inode_chain(int *i, struct jffs2_sb_info *c) in first_inode_chain() 37 next_inode(int *i, struct jffs2_inode_cache *ic, struct jffs2_sb_info *c) in next_inode() 46 #define for_each_inode(i, c, ic) \ argument 52 static void jffs2_build_inode_pass1(struct jffs2_sb_info *c, in jffs2_build_inode_pass1() 99 static int jffs2_build_filesystem(struct jffs2_sb_info *c) in jffs2_build_filesystem() 242 static void jffs2_build_remove_unlinked_inode(struct jffs2_sb_info *c, in jffs2_build_remove_unlinked_inode() 311 static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c) in jffs2_calc_trigger_levels() 373 int jffs2_do_mount_fs(struct jffs2_sb_info *c) in jffs2_do_mount_fs()
|
D | nodemgmt.c | 24 static int jffs2_rp_can_write(struct jffs2_sb_info *c) in jffs2_rp_can_write() 74 int jffs2_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, in jffs2_reserve_space() 212 int jffs2_reserve_space_gc(struct jffs2_sb_info *c, uint32_t minsize, in jffs2_reserve_space_gc() 243 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_close_nextblock() 280 static int jffs2_find_nextblock(struct jffs2_sb_info *c) in jffs2_find_nextblock() 354 static int jffs2_do_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, in jffs2_do_reserve_space() 500 struct jffs2_raw_node_ref *jffs2_add_physical_node_ref(struct jffs2_sb_info *c, in jffs2_add_physical_node_ref() 556 void jffs2_complete_reservation(struct jffs2_sb_info *c) in jffs2_complete_reservation() 579 void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref) in jffs2_mark_node_obsolete() 837 int jffs2_thread_should_wake(struct jffs2_sb_info *c) in jffs2_thread_should_wake()
|
D | fs.c | 36 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_do_setattr() local 211 struct jffs2_sb_info *c = JFFS2_SB_INFO(dentry->d_sb); in jffs2_statfs() local 242 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_evict_inode() local 255 struct jffs2_sb_info *c; in jffs2_iget() local 397 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_do_remount_fs() local 426 struct jffs2_sb_info *c; in jffs2_new_inode() local 515 struct jffs2_sb_info *c; in jffs2_do_fill_super() local 615 void jffs2_gc_release_inode(struct jffs2_sb_info *c, in jffs2_gc_release_inode() 621 struct jffs2_inode_info *jffs2_gc_fetch_inode(struct jffs2_sb_info *c, in jffs2_gc_fetch_inode() 686 static int jffs2_flash_setup(struct jffs2_sb_info *c) { in jffs2_flash_setup() [all …]
|
/fs/ubifs/ |
D | key.h | 90 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() 103 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() 119 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key() 132 static inline void highest_ino_key(const struct ubifs_info *c, in highest_ino_key() 146 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init() 165 static inline void dent_key_init_hash(const struct ubifs_info *c, in dent_key_init_hash() 181 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() 201 static inline void lowest_dent_key(const struct ubifs_info *c, in lowest_dent_key() 215 static inline void xent_key_init(const struct ubifs_info *c, in xent_key_init() 233 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() [all …]
|
D | lpt_commit.c | 30 static struct ubifs_cnode *first_dirty_cnode(const struct ubifs_info *c, struct ubifs_nnode *nnode) in first_dirty_cnode() 61 static struct ubifs_cnode *next_dirty_cnode(const struct ubifs_info *c, struct ubifs_cnode *cnode) in next_dirty_cnode() 88 static int get_cnodes_to_commit(struct ubifs_info *c) in get_cnodes_to_commit() 129 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() 149 static int alloc_lpt_leb(struct ubifs_info *c, int *lnum) in alloc_lpt_leb() 182 static int layout_cnodes(struct ubifs_info *c) in layout_cnodes() 333 static int realloc_lpt_leb(struct ubifs_info *c, int *lnum) in realloc_lpt_leb() 360 static int write_cnodes(struct ubifs_info *c) in write_cnodes() 552 static struct ubifs_pnode *next_pnode_to_dirty(struct ubifs_info *c, in next_pnode_to_dirty() 614 static void add_pnode_dirt(struct ubifs_info *c, struct ubifs_pnode *pnode) in add_pnode_dirt() [all …]
|
D | budget.c | 51 static void shrink_liability(struct ubifs_info *c, int nr_to_write) in shrink_liability() 66 static int run_gc(struct ubifs_info *c) in run_gc() 92 static long long get_liability(struct ubifs_info *c) in get_liability() 120 static int make_free_space(struct ubifs_info *c) in make_free_space() 166 int ubifs_calc_min_idx_lebs(struct ubifs_info *c) in ubifs_calc_min_idx_lebs() 197 long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs) in ubifs_calc_available() 260 static int can_use_rp(struct ubifs_info *c) in can_use_rp() 293 static int do_budget_space(struct ubifs_info *c) in do_budget_space() 361 static int calc_idx_growth(const struct ubifs_info *c, in calc_idx_growth() 377 static int calc_data_growth(const struct ubifs_info *c, in calc_data_growth() [all …]
|
D | super.c | 73 static int validate_inode(struct ubifs_info *c, const struct inode *inode) in validate_inode() 112 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget() local 299 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_write_inode() local 353 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_evict_inode() local 400 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_dirty_inode() local 412 struct ubifs_info *c = dentry->d_sb->s_fs_info; in ubifs_statfs() local 439 struct ubifs_info *c = root->d_sb->s_fs_info; in ubifs_show_options() local 470 struct ubifs_info *c = sb->s_fs_info; in ubifs_sync_fs() local 513 static int init_constants_early(struct ubifs_info *c) in init_constants_early() 663 static int bud_wbuf_callback(struct ubifs_info *c, int lnum, int free, int pad) in bud_wbuf_callback() [all …]
|
D | misc.h | 56 static inline void ubifs_wake_up_bgt(struct ubifs_info *c) in ubifs_wake_up_bgt() 101 static inline int ubifs_compr_present(struct ubifs_info *c, int compr_type) in ubifs_compr_present() 114 static inline const char *ubifs_compr_name(struct ubifs_info *c, int compr_type) in ubifs_compr_name() 161 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt() 175 static inline int ubifs_return_leb(struct ubifs_info *c, int lnum) in ubifs_return_leb() 186 static inline int ubifs_idx_node_sz(const struct ubifs_info *c, int child_cnt) in ubifs_idx_node_sz() 199 struct ubifs_branch *ubifs_idx_branch(const struct ubifs_info *c, in ubifs_idx_branch() 212 static inline void *ubifs_idx_key(const struct ubifs_info *c, in ubifs_idx_key() 229 static inline int ubifs_tnc_lookup(struct ubifs_info *c, in ubifs_tnc_lookup() 242 static inline void ubifs_get_lprops(struct ubifs_info *c) in ubifs_get_lprops() [all …]
|
D | lprops.c | 50 static void move_up_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in move_up_lpt_heap() 87 static void adjust_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in adjust_lpt_heap() 166 static int add_to_lpt_heap(struct ubifs_info *c, struct ubifs_lprops *lprops, in add_to_lpt_heap() 214 static void remove_from_lpt_heap(struct ubifs_info *c, in remove_from_lpt_heap() 243 static void lpt_heap_replace(struct ubifs_info *c, in lpt_heap_replace() 261 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, in ubifs_add_to_cat() 304 static void ubifs_remove_from_cat(struct ubifs_info *c, in ubifs_remove_from_cat() 341 void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops, in ubifs_replace_cat() 373 void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops) in ubifs_ensure_cat() 396 int ubifs_categorize_lprops(const struct ubifs_info *c, in ubifs_categorize_lprops() [all …]
|
D | auth.c | 30 int __ubifs_node_calc_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_calc_hash() 47 static int ubifs_hash_calc_hmac(const struct ubifs_info *c, const u8 *hash, in ubifs_hash_calc_hmac() 64 int ubifs_prepare_auth_node(struct ubifs_info *c, void *node, in ubifs_prepare_auth_node() 91 static struct shash_desc *ubifs_get_desc(const struct ubifs_info *c, in ubifs_get_desc() 122 struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c) in __ubifs_hash_get_desc() 138 void ubifs_bad_hash(const struct ubifs_info *c, const void *node, const u8 *hash, in ubifs_bad_hash() 164 int __ubifs_node_check_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_check_hash() 192 int ubifs_sb_verify_signature(struct ubifs_info *c, in ubifs_sb_verify_signature() 257 int ubifs_init_authentication(struct ubifs_info *c) in ubifs_init_authentication() 367 void __ubifs_exit_authentication(struct ubifs_info *c) in __ubifs_exit_authentication() [all …]
|
D | io.c | 70 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode() 87 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() 105 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() 126 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len) in ubifs_leb_change() 146 int ubifs_leb_unmap(struct ubifs_info *c, int lnum) in ubifs_leb_unmap() 165 int ubifs_leb_map(struct ubifs_info *c, int lnum) in ubifs_leb_map() 184 int ubifs_is_mapped(const struct ubifs_info *c, int lnum) in ubifs_is_mapped() 225 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, in ubifs_check_node() 318 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad() 348 static unsigned long long next_sqnum(struct ubifs_info *c) in next_sqnum() [all …]
|
D | tnc.c | 47 static void do_insert_old_idx(struct ubifs_info *c, in do_insert_old_idx() 97 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() 118 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() 140 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode() 179 void destroy_old_idx(struct ubifs_info *c) in destroy_old_idx() 196 static struct ubifs_znode *copy_znode(struct ubifs_info *c, in copy_znode() 220 static int add_idx_dirt(struct ubifs_info *c, int lnum, int dirt) in add_idx_dirt() 235 static void replace_znode(struct ubifs_info *c, struct ubifs_znode *new_zn, in replace_znode() 269 static struct ubifs_znode *dirty_cow_znode(struct ubifs_info *c, in dirty_cow_znode() 342 static int lnc_add(struct ubifs_info *c, struct ubifs_zbranch *zbr, in lnc_add() [all …]
|
D | orphan.c | 45 static struct ubifs_orphan *orphan_add(struct ubifs_info *c, ino_t inum, in orphan_add() 96 static struct ubifs_orphan *lookup_orphan(struct ubifs_info *c, ino_t inum) in lookup_orphan() 115 static void __orphan_drop(struct ubifs_info *c, struct ubifs_orphan *o) in __orphan_drop() 129 static void orphan_delete(struct ubifs_info *c, struct ubifs_orphan *orph) in orphan_delete() 155 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan() 207 void ubifs_delete_orphan(struct ubifs_info *c, ino_t inum) in ubifs_delete_orphan() 238 int ubifs_orphan_start_commit(struct ubifs_info *c) in ubifs_orphan_start_commit() 272 static int avail_orphs(struct ubifs_info *c) in avail_orphs() 292 static int tot_avail_orphs(struct ubifs_info *c) in tot_avail_orphs() 312 static int do_write_orph_node(struct ubifs_info *c, int len, int atomic) in do_write_orph_node() [all …]
|
D | lpt.c | 46 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom() 125 int ubifs_calc_lpt_geom(struct ubifs_info *c) in ubifs_calc_lpt_geom() 162 static int calc_dflt_lpt_geom(struct ubifs_info *c, int *main_lebs, in calc_dflt_lpt_geom() 222 static void pack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, uint32_t val, int nrbit… in pack_bits() 273 uint32_t ubifs_unpack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, int nrbits) in ubifs_unpack_bits() 340 void ubifs_pack_pnode(struct ubifs_info *c, void *buf, in ubifs_pack_pnode() 373 void ubifs_pack_nnode(struct ubifs_info *c, void *buf, in ubifs_pack_nnode() 405 void ubifs_pack_ltab(struct ubifs_info *c, void *buf, in ubifs_pack_ltab() 430 void ubifs_pack_lsave(struct ubifs_info *c, void *buf, int *lsave) in ubifs_pack_lsave() 452 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt() [all …]
|
D | commit.c | 56 static int nothing_to_commit(struct ubifs_info *c) in nothing_to_commit() 97 static int do_commit(struct ubifs_info *c) in do_commit() 232 static int run_bg_commit(struct ubifs_info *c) in run_bg_commit() 278 struct ubifs_info *c = info; in ubifs_bg_thread() local 326 void ubifs_commit_required(struct ubifs_info *c) in ubifs_commit_required() 356 void ubifs_request_bg_commit(struct ubifs_info *c) in ubifs_request_bg_commit() 375 static int wait_for_commit(struct ubifs_info *c) in wait_for_commit() 399 int ubifs_run_commit(struct ubifs_info *c) in ubifs_run_commit() 467 int ubifs_gc_should_commit(struct ubifs_info *c) in ubifs_gc_should_commit() 514 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot) in dbg_old_index_check_init() [all …]
|
D | debug.c | 90 const char *dbg_snprintf_key(const struct ubifs_info *c, in dbg_snprintf_key() 224 void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode) in ubifs_dump_inode() 294 void ubifs_dump_node(const struct ubifs_info *c, const void *node) in ubifs_dump_node() 575 void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi) in ubifs_dump_budg() 643 void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) in ubifs_dump_lprop() 734 void ubifs_dump_lprops(struct ubifs_info *c) in ubifs_dump_lprops() 756 void ubifs_dump_lpt_info(struct ubifs_info *c) in ubifs_dump_lpt_info() 794 void ubifs_dump_sleb(const struct ubifs_info *c, in ubifs_dump_sleb() 810 void ubifs_dump_leb(const struct ubifs_info *c, int lnum) in ubifs_dump_leb() 848 void ubifs_dump_znode(const struct ubifs_info *c, in ubifs_dump_znode() [all …]
|
D | find.c | 42 static int valuable(struct ubifs_info *c, const struct ubifs_lprops *lprops) in valuable() 83 static int scan_for_dirty_cb(struct ubifs_info *c, in scan_for_dirty_cb() 124 static const struct ubifs_lprops *scan_for_dirty(struct ubifs_info *c, in scan_for_dirty() 221 int ubifs_find_dirty_leb(struct ubifs_info *c, struct ubifs_lprops *ret_lp, in ubifs_find_dirty_leb() 350 static int scan_for_free_cb(struct ubifs_info *c, in scan_for_free_cb() 395 const struct ubifs_lprops *do_find_free_space(struct ubifs_info *c, in do_find_free_space() 481 int ubifs_find_free_space(struct ubifs_info *c, int min_space, int *offs, in ubifs_find_free_space() 590 static int scan_for_idx_cb(struct ubifs_info *c, in scan_for_idx_cb() 621 static const struct ubifs_lprops *scan_for_leb_for_idx(struct ubifs_info *c) in scan_for_leb_for_idx() 661 int ubifs_find_free_leb_for_idx(struct ubifs_info *c) in ubifs_find_free_leb_for_idx() [all …]
|
D | gc.c | 65 static int switch_gc_head(struct ubifs_info *c) in switch_gc_head() 108 struct ubifs_info *c = priv; in data_nodes_cmp() local 152 struct ubifs_info *c = priv; in nondata_nodes_cmp() local 227 static int sort_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in sort_nodes() 302 static int move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in move_node() 330 static int move_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb) in move_nodes() 467 static int gc_sync_wbufs(struct ubifs_info *c) in gc_sync_wbufs() 490 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp) in ubifs_garbage_collect_leb() 669 int ubifs_garbage_collect(struct ubifs_info *c, int anyway) in ubifs_garbage_collect() 860 int ubifs_gc_start_commit(struct ubifs_info *c) in ubifs_gc_start_commit() [all …]
|
D | tnc_commit.c | 25 static int make_idx_node(struct ubifs_info *c, struct ubifs_idx_node *idx, in make_idx_node() 106 static int fill_gap(struct ubifs_info *c, int lnum, int gap_start, int gap_end, in fill_gap() 163 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx() 198 static int is_idx_node_in_use(struct ubifs_info *c, union ubifs_key *key, in is_idx_node_in_use() 224 static int layout_leb_in_gaps(struct ubifs_info *c, int p) in layout_leb_in_gaps() 334 static int get_leb_cnt(struct ubifs_info *c, int cnt) in get_leb_cnt() 356 static int layout_in_gaps(struct ubifs_info *c, int cnt) in layout_in_gaps() 429 static int layout_in_empty_space(struct ubifs_info *c) in layout_in_empty_space() 568 static int layout_commit(struct ubifs_info *c, int no_space, int cnt) in layout_commit() 642 static int get_znodes_to_commit(struct ubifs_info *c) in get_znodes_to_commit() [all …]
|
D | recovery.c | 97 static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf, in get_master_node() 192 static int write_rcvrd_mst_node(struct ubifs_info *c, in write_rcvrd_mst_node() 227 int ubifs_recover_master_node(struct ubifs_info *c) in ubifs_recover_master_node() 375 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c) in ubifs_write_rcvrd_mst_node() 402 static int is_last_write(const struct ubifs_info *c, void *buf, int offs) in is_last_write() 429 static void clean_buf(const struct ubifs_info *c, void **buf, int lnum, in clean_buf() 458 static int no_more_nodes(const struct ubifs_info *c, void *buf, int len, in no_more_nodes() 491 static int fix_unclean_leb(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in fix_unclean_leb() 622 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, in ubifs_recover_leb() 799 static int get_cs_sqnum(struct ubifs_info *c, int lnum, int offs, in get_cs_sqnum() [all …]
|
D | replay.c | 88 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() 162 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops() 181 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range() 213 static bool inode_still_linked(struct ubifs_info *c, struct replay_entry *rino) in inode_still_linked() 243 static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r) in apply_replay_entry() 305 struct ubifs_info *c = priv; in replay_entries_cmp() local 327 static int apply_replay_list(struct ubifs_info *c) in apply_replay_list() 351 static void destroy_replay_list(struct ubifs_info *c) in destroy_replay_list() 383 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() 432 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() [all …]
|