/openbmc/linux/fs/jffs2/ |
H A D | nodelist.h | 369 void jffs2_free_ino_caches(struct jffs2_sb_info *c); 370 void jffs2_free_raw_node_refs(struct jffs2_sb_info *c); 379 extern uint32_t __jffs2_ref_totlen(struct jffs2_sb_info *c, 384 int jffs2_thread_should_wake(struct jffs2_sb_info *c); 392 void jffs2_complete_reservation(struct jffs2_sb_info *c); 435 int jffs2_prealloc_raw_node_refs(struct jffs2_sb_info *c, 450 int jffs2_garbage_collect_pass(struct jffs2_sb_info *c); 461 int jffs2_scan_medium(struct jffs2_sb_info *c); 462 void jffs2_rotate_lists(struct jffs2_sb_info *c); 468 int jffs2_do_mount_fs(struct jffs2_sb_info *c); [all …]
|
H A D | os-linux.h | 126 int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c); 127 int jffs2_nand_flash_setup(struct jffs2_sb_info *c); 128 void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c); 131 int jffs2_dataflash_setup(struct jffs2_sb_info *c); 132 void jffs2_dataflash_cleanup(struct jffs2_sb_info *c); 134 int jffs2_ubivol_setup(struct jffs2_sb_info *c); 135 void jffs2_ubivol_cleanup(struct jffs2_sb_info *c); 138 int jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info *c); 140 void jffs2_dirty_trigger(struct jffs2_sb_info *c); 177 void jffs2_gc_release_inode(struct jffs2_sb_info *c, [all …]
|
H A D | xattr.h | 73 extern void jffs2_init_xattr_subsystem(struct jffs2_sb_info *c); 74 extern int jffs2_build_xattr_subsystem(struct jffs2_sb_info *c); 75 extern void jffs2_clear_xattr_subsystem(struct jffs2_sb_info *c); 77 extern struct jffs2_xattr_datum *jffs2_setup_xattr_datum(struct jffs2_sb_info *c, 80 extern void jffs2_xattr_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); 81 extern void jffs2_xattr_delete_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); 82 extern void jffs2_xattr_free_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); 86 extern int jffs2_garbage_collect_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref, 88 extern int jffs2_verify_xattr(struct jffs2_sb_info *c); 89 extern void jffs2_release_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd); [all …]
|
H A D | debug.h | 174 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, 177 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, 186 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, 189 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, 192 __jffs2_dbg_prewrite_paranoia_check(struct jffs2_sb_info *c, 197 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 201 __jffs2_dbg_dump_block_lists(struct jffs2_sb_info *c); 203 __jffs2_dbg_dump_block_lists_nolock(struct jffs2_sb_info *c); 205 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, 208 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, [all …]
|
H A D | super.c | 87 struct jffs2_sb_info *c = JFFS2_SB_INFO(root->d_sb); in jffs2_show_options() 100 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_sync_fs() 191 struct jffs2_sb_info *c = fc->s_fs_info; in jffs2_parse_param() 218 struct jffs2_sb_info *new_c = fc->s_fs_info; in jffs2_update_mount_opts() 219 struct jffs2_sb_info *c = JFFS2_SB_INFO(fc->root->d_sb); in jffs2_update_mount_opts() 260 struct jffs2_sb_info *c = sb->s_fs_info; in jffs2_fill_super() 311 struct jffs2_sb_info *ctx; in jffs2_init_fs_context() 313 ctx = kzalloc(sizeof(struct jffs2_sb_info), GFP_KERNEL); in jffs2_init_fs_context() 324 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_put_super() 346 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_kill_sb()
|
H A D | wbuf.c | 275 static void jffs2_wbuf_recover(struct jffs2_sb_info *c) in jffs2_wbuf_recover() 764 int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c) in jffs2_flush_wbuf_pad() 1033 int jffs2_check_oob_empty(struct jffs2_sb_info *c, in jffs2_check_oob_empty() 1162 struct jffs2_sb_info *c = work_to_sb(work); in delayed_wbuf_sync() 1171 void jffs2_dirty_trigger(struct jffs2_sb_info *c) in jffs2_dirty_trigger() 1184 int jffs2_nand_flash_setup(struct jffs2_sb_info *c) in jffs2_nand_flash_setup() 1228 void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c) in jffs2_nand_flash_cleanup() 1237 int jffs2_dataflash_setup(struct jffs2_sb_info *c) { in jffs2_dataflash_setup() 1286 void jffs2_dataflash_cleanup(struct jffs2_sb_info *c) { in jffs2_dataflash_cleanup() 1326 int jffs2_ubivol_setup(struct jffs2_sb_info *c) { in jffs2_ubivol_setup() [all …]
|
H A D | summary.h | 175 int jffs2_sum_init(struct jffs2_sb_info *c); 176 void jffs2_sum_exit(struct jffs2_sb_info *c); 180 void jffs2_sum_move_collected(struct jffs2_sb_info *c, struct jffs2_summary *s); 181 int jffs2_sum_add_kvec(struct jffs2_sb_info *c, const struct kvec *invecs, 183 int jffs2_sum_write_sumnode(struct jffs2_sb_info *c); 189 int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
|
H A D | nodelist.c | 23 static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, 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() 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() 487 void jffs2_free_ino_caches(struct jffs2_sb_info *c) in jffs2_free_ino_caches() 504 void jffs2_free_raw_node_refs(struct jffs2_sb_info *c) in jffs2_free_raw_node_refs() 565 void jffs2_kill_fragtree(struct rb_root *root, struct jffs2_sb_info *c) in jffs2_kill_fragtree() 585 struct jffs2_raw_node_ref *jffs2_link_node_ref(struct jffs2_sb_info *c, in jffs2_link_node_ref() 662 int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_scan_dirty_space() [all …]
|
H A D | erase.c | 24 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_… 25 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 26 static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 28 static void jffs2_erase_block(struct jffs2_sb_info *c, in jffs2_erase_block() 99 int jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count) in jffs2_erase_pending_blocks() 159 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_erase_succeeded() 172 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_… in jffs2_erase_failed() 206 static inline void jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, in jffs2_remove_node_refs_from_ino_list() 287 void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_free_jeb_node_refs() 311 static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t … in jffs2_block_check_erase() [all …]
|
H A D | build.c | 23 static void jffs2_build_remove_unlinked_inode(struct jffs2_sb_info *, 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() 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()
|
H A D | xattr.c | 102 static void reclaim_xattr_datum(struct jffs2_sb_info *c) in reclaim_xattr_datum() 336 static struct jffs2_xattr_datum *create_xattr_datum(struct jffs2_sb_info *c, in create_xattr_datum() 506 static int save_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref) in save_xattr_ref() 707 void jffs2_init_xattr_subsystem(struct jffs2_sb_info *c) in jffs2_init_xattr_subsystem() 740 void jffs2_clear_xattr_subsystem(struct jffs2_sb_info *c) in jffs2_clear_xattr_subsystem() 775 int jffs2_build_xattr_subsystem(struct jffs2_sb_info *c) in jffs2_build_xattr_subsystem() 894 struct jffs2_xattr_datum *jffs2_setup_xattr_datum(struct jffs2_sb_info *c, in jffs2_setup_xattr_datum() 970 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_listxattr() 1039 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in do_jffs2_getxattr() 1101 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in do_jffs2_setxattr() [all …]
|
H A D | background.c | 27 void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c) in jffs2_garbage_collect_trigger() 35 int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c) in jffs2_start_garbage_collect_thread() 61 void jffs2_stop_garbage_collect_thread(struct jffs2_sb_info *c) in jffs2_stop_garbage_collect_thread() 77 struct jffs2_sb_info *c = _c; in jffs2_garbage_collect_thread()
|
H A D | fs.c | 30 static int jffs2_flash_setup(struct jffs2_sb_info *c); 36 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_do_setattr() 212 struct jffs2_sb_info *c = JFFS2_SB_INFO(dentry->d_sb); in jffs2_statfs() 243 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_evict_inode() 256 struct jffs2_sb_info *c; in jffs2_iget() 398 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_do_remount_fs() 427 struct jffs2_sb_info *c; in jffs2_new_inode() 516 struct jffs2_sb_info *c; in jffs2_do_fill_super() 616 void jffs2_gc_release_inode(struct jffs2_sb_info *c, in jffs2_gc_release_inode() 687 static int jffs2_flash_setup(struct jffs2_sb_info *c) { in jffs2_flash_setup() [all …]
|
H A D | writev.c | 16 int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs, in jffs2_flash_direct_writev() 32 int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, in jffs2_flash_direct_write()
|
H A D | nodemgmt.c | 24 static int jffs2_rp_can_write(struct jffs2_sb_info *c) in jffs2_rp_can_write() 71 static int jffs2_do_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, 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() [all …]
|
H A D | compr.h | 73 uint16_t jffs2_compress(struct jffs2_sb_info *c, struct jffs2_inode_info *f, 77 int jffs2_decompress(struct jffs2_sb_info *c, struct jffs2_inode_info *f,
|
H A D | scan.c | 39 static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 46 static int jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 48 static int jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 51 static inline int min_free(struct jffs2_sb_info *c) in min_free() 69 static int file_dirty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in file_dirty() 91 int jffs2_scan_medium(struct jffs2_sb_info *c) in jffs2_scan_medium() 290 static int jffs2_fill_scan_buf(struct jffs2_sb_info *c, void *buf, in jffs2_fill_scan_buf() 310 int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_scan_classify_jeb() 330 static int jffs2_scan_xattr_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_scan_xattr_node() 386 static int jffs2_scan_xref_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_scan_xref_node() [all …]
|
H A D | debug.c | 28 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, in __jffs2_dbg_acct_sanity_check_nolock() 52 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, in __jffs2_dbg_acct_sanity_check() 125 __jffs2_dbg_prewrite_paranoia_check(struct jffs2_sb_info *c, in __jffs2_dbg_prewrite_paranoia_check() 160 void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c) in __jffs2_dbg_superblock_counts() 301 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, in __jffs2_dbg_acct_paranoia_check() 310 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, in __jffs2_dbg_acct_paranoia_check_nolock() 392 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, in __jffs2_dbg_dump_node_refs() 401 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, in __jffs2_dbg_dump_node_refs_nolock() 459 __jffs2_dbg_dump_block_lists(struct jffs2_sb_info *c) in __jffs2_dbg_dump_block_lists() 467 __jffs2_dbg_dump_block_lists_nolock(struct jffs2_sb_info *c) in __jffs2_dbg_dump_block_lists_nolock() [all …]
|
H A D | gc.c | 25 static int jffs2_garbage_collect_pristine(struct jffs2_sb_info *c, 28 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 30 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 34 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 37 static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 40 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 44 static struct jffs2_eraseblock *jffs2_find_gc_block(struct jffs2_sb_info *c) in jffs2_find_gc_block() 124 int jffs2_garbage_collect_pass(struct jffs2_sb_info *c) in jffs2_garbage_collect_pass() 497 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_live() 591 static int jffs2_garbage_collect_pristine(struct jffs2_sb_info *c, in jffs2_garbage_collect_pristine() [all …]
|
H A D | readinode.c | 31 static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info *tn) in check_node_data() 150 static int check_tn_node(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info *tn) in check_tn_node() 199 static void jffs2_kill_tn(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info *tn) in jffs2_kill_tn() 218 static int jffs2_add_tn_to_tree(struct jffs2_sb_info *c, in jffs2_add_tn_to_tree() 451 static int jffs2_build_inode_fragtree(struct jffs2_sb_info *c, in jffs2_build_inode_fragtree() 713 static inline int read_dnode(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, in read_dnode() 940 static int read_more(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, in read_more() 1145 static int jffs2_do_read_inode_internal(struct jffs2_sb_info *c, in jffs2_do_read_inode_internal() 1328 int jffs2_do_read_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_do_read_inode() 1392 int jffs2_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in jffs2_do_crccheck_inode() [all …]
|
H A D | file.c | 35 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_fsync() 83 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_do_readpage_nolock() 138 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_write_begin() 253 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_write_end()
|
H A D | summary.c | 26 int jffs2_sum_init(struct jffs2_sb_info *c) in jffs2_sum_init() 50 void jffs2_sum_exit(struct jffs2_sb_info *c) in jffs2_sum_exit() 231 void jffs2_sum_move_collected(struct jffs2_sb_info *c, struct jffs2_summary *s) in jffs2_sum_move_collected() 248 int jffs2_sum_add_kvec(struct jffs2_sb_info *c, const struct kvec *invecs, in jffs2_sum_add_kvec() 370 static struct jffs2_raw_node_ref *sum_link_node_ref(struct jffs2_sb_info *c, in sum_link_node_ref() 386 static int jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_sum_process_sum_data() 572 int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_sum_scan_sumnode() 674 static int jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_sum_write_data() 849 int jffs2_sum_write_sumnode(struct jffs2_sb_info *c) in jffs2_sum_write_sumnode()
|
H A D | write.c | 23 int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_do_new_inode() 59 struct jffs2_full_dnode *jffs2_write_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_write_dnode() 205 struct jffs2_full_dirent *jffs2_write_dirent(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_write_dirent() 340 int jffs2_write_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_write_inode_range() 441 int jffs2_do_create(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, in jffs2_do_create() 547 int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, in jffs2_do_unlink() 669 int jffs2_do_link (struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino, uint8_t t… in jffs2_do_link()
|
H A D | dir.c | 168 struct jffs2_sb_info *c; in jffs2_create() 230 struct jffs2_sb_info *c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_unlink() 249 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link() 287 struct jffs2_sb_info *c; in jffs2_symlink() 451 struct jffs2_sb_info *c; in jffs2_mkdir() 594 struct jffs2_sb_info *c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_rmdir() 624 struct jffs2_sb_info *c; in jffs2_mknod() 775 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dir_i->i_sb); in jffs2_rename()
|
H A D | read.c | 23 int jffs2_read_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_read_dnode() 157 int jffs2_read_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_read_inode_range()
|