Home
last modified time | relevance | path

Searched refs:ubifs_info (Results 1 – 25 of 33) sorted by relevance

12

/linux-4.19.296/fs/ubifs/
Dubifs.h645 struct ubifs_info;
648 typedef int (*ubifs_lpt_scan_callback)(struct ubifs_info *c,
684 struct ubifs_info *c;
692 int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad);
1231 struct ubifs_info { struct
1475 void ubifs_ro_mode(struct ubifs_info *c, int err); argument
1476 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs,
1478 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
1480 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len);
1481 int ubifs_leb_unmap(struct ubifs_info *c, int lnum);
[all …]
Ddebug.h27 typedef int (*dbg_leaf_callback)(struct ubifs_info *c,
29 typedef int (*dbg_znode_callback)(struct ubifs_info *c,
151 void ubifs_assert_failed(struct ubifs_info *c, const char *expr,
156 ubifs_assert_failed((struct ubifs_info *)c, #expr, __FILE__, \
216 static inline int dbg_is_chk_gen(const struct ubifs_info *c) in dbg_is_chk_gen()
220 static inline int dbg_is_chk_index(const struct ubifs_info *c) in dbg_is_chk_index()
224 static inline int dbg_is_chk_orph(const struct ubifs_info *c) in dbg_is_chk_orph()
228 static inline int dbg_is_chk_lprops(const struct ubifs_info *c) in dbg_is_chk_lprops()
232 static inline int dbg_is_chk_fs(const struct ubifs_info *c) in dbg_is_chk_fs()
236 static inline int dbg_is_tst_rcvry(const struct ubifs_info *c) in dbg_is_tst_rcvry()
[all …]
Dkey.h102 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init()
115 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash()
131 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key()
144 static inline void highest_ino_key(const struct ubifs_info *c, in highest_ino_key()
158 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init()
178 static inline void dent_key_init_hash(const struct ubifs_info *c, in dent_key_init_hash()
194 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash()
214 static inline void lowest_dent_key(const struct ubifs_info *c, in lowest_dent_key()
228 static inline void xent_key_init(const struct ubifs_info *c, in xent_key_init()
246 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash()
[all …]
Dmisc.h68 static inline void ubifs_wake_up_bgt(struct ubifs_info *c) in ubifs_wake_up_bgt()
113 static inline int ubifs_compr_present(struct ubifs_info *c, int compr_type) in ubifs_compr_present()
126 static inline const char *ubifs_compr_name(struct ubifs_info *c, int compr_type) in ubifs_compr_name()
173 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt()
187 static inline int ubifs_return_leb(struct ubifs_info *c, int lnum) in ubifs_return_leb()
198 static inline int ubifs_idx_node_sz(const struct ubifs_info *c, int child_cnt) in ubifs_idx_node_sz()
210 struct ubifs_branch *ubifs_idx_branch(const struct ubifs_info *c, in ubifs_idx_branch()
223 static inline void *ubifs_idx_key(const struct ubifs_info *c, in ubifs_idx_key()
240 static inline int ubifs_tnc_lookup(struct ubifs_info *c, in ubifs_tnc_lookup()
253 static inline void ubifs_get_lprops(struct ubifs_info *c) in ubifs_get_lprops()
[all …]
Dbudget.c63 static void shrink_liability(struct ubifs_info *c, int nr_to_write) in shrink_liability()
78 static int run_gc(struct ubifs_info *c) in run_gc()
104 static long long get_liability(struct ubifs_info *c) in get_liability()
132 static int make_free_space(struct ubifs_info *c) in make_free_space()
178 int ubifs_calc_min_idx_lebs(struct ubifs_info *c) in ubifs_calc_min_idx_lebs()
209 long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs) in ubifs_calc_available()
272 static int can_use_rp(struct ubifs_info *c) in can_use_rp()
305 static int do_budget_space(struct ubifs_info *c) in do_budget_space()
373 static int calc_idx_growth(const struct ubifs_info *c, in calc_idx_growth()
389 static int calc_data_growth(const struct ubifs_info *c, in calc_data_growth()
[all …]
Dlpt_commit.c33 static int dbg_populate_lsave(struct ubifs_info *c);
42 static struct ubifs_cnode *first_dirty_cnode(const struct ubifs_info *c, struct ubifs_nnode *nnode) in first_dirty_cnode()
73 static struct ubifs_cnode *next_dirty_cnode(const struct ubifs_info *c, struct ubifs_cnode *cnode) in next_dirty_cnode()
100 static int get_cnodes_to_commit(struct ubifs_info *c) in get_cnodes_to_commit()
141 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab()
161 static int alloc_lpt_leb(struct ubifs_info *c, int *lnum) in alloc_lpt_leb()
194 static int layout_cnodes(struct ubifs_info *c) in layout_cnodes()
345 static int realloc_lpt_leb(struct ubifs_info *c, int *lnum) in realloc_lpt_leb()
372 static int write_cnodes(struct ubifs_info *c) in write_cnodes()
564 static struct ubifs_pnode *next_pnode_to_dirty(struct ubifs_info *c, in next_pnode_to_dirty()
[all …]
Dorphan.c55 static int dbg_check_orphans(struct ubifs_info *c);
65 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan()
115 void ubifs_delete_orphan(struct ubifs_info *c, ino_t inum) in ubifs_delete_orphan()
168 int ubifs_orphan_start_commit(struct ubifs_info *c) in ubifs_orphan_start_commit()
202 static int avail_orphs(struct ubifs_info *c) in avail_orphs()
222 static int tot_avail_orphs(struct ubifs_info *c) in tot_avail_orphs()
242 static int do_write_orph_node(struct ubifs_info *c, int len, int atomic) in do_write_orph_node()
273 static int write_orph_node(struct ubifs_info *c, int atomic) in write_orph_node()
336 static int write_orph_nodes(struct ubifs_info *c, int atomic) in write_orph_nodes()
369 static int consolidate(struct ubifs_info *c) in consolidate()
[all …]
Dmisc.c6 void ubifs_msg(const struct ubifs_info *c, const char *fmt, ...) in ubifs_msg()
23 void ubifs_err(const struct ubifs_info *c, const char *fmt, ...) in ubifs_err()
42 void ubifs_warn(const struct ubifs_info *c, const char *fmt, ...) in ubifs_warn()
66 const char *ubifs_assert_action_name(struct ubifs_info *c) in ubifs_assert_action_name()
Dtnc.c37 static int try_read_node(const struct ubifs_info *c, void *buf, int type,
39 static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key,
59 static void do_insert_old_idx(struct ubifs_info *c, in do_insert_old_idx()
109 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx()
130 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode()
152 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode()
191 void destroy_old_idx(struct ubifs_info *c) in destroy_old_idx()
208 static struct ubifs_znode *copy_znode(struct ubifs_info *c, in copy_znode()
232 static int add_idx_dirt(struct ubifs_info *c, int lnum, int dirt) in add_idx_dirt()
247 static void replace_znode(struct ubifs_info *c, struct ubifs_znode *new_zn, in replace_znode()
[all …]
Dreplay.c97 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops()
171 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops()
190 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range()
222 static bool inode_still_linked(struct ubifs_info *c, struct replay_entry *rino) in inode_still_linked()
252 static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r) in apply_replay_entry()
314 struct ubifs_info *c = priv; in replay_entries_cmp()
336 static int apply_replay_list(struct ubifs_info *c) in apply_replay_list()
360 static void destroy_replay_list(struct ubifs_info *c) in destroy_replay_list()
392 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node()
440 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent()
[all …]
Dlprops.c62 static void move_up_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in move_up_lpt_heap()
99 static void adjust_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in adjust_lpt_heap()
178 static int add_to_lpt_heap(struct ubifs_info *c, struct ubifs_lprops *lprops, in add_to_lpt_heap()
226 static void remove_from_lpt_heap(struct ubifs_info *c, in remove_from_lpt_heap()
255 static void lpt_heap_replace(struct ubifs_info *c, in lpt_heap_replace()
273 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, in ubifs_add_to_cat()
316 static void ubifs_remove_from_cat(struct ubifs_info *c, in ubifs_remove_from_cat()
353 void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops, in ubifs_replace_cat()
385 void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops) in ubifs_ensure_cat()
408 int ubifs_categorize_lprops(const struct ubifs_info *c, in ubifs_categorize_lprops()
[all …]
Drecovery.c109 static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf, in get_master_node()
204 static int write_rcvrd_mst_node(struct ubifs_info *c, in write_rcvrd_mst_node()
236 int ubifs_recover_master_node(struct ubifs_info *c) in ubifs_recover_master_node()
386 int ubifs_write_rcvrd_mst_node(struct ubifs_info *c) in ubifs_write_rcvrd_mst_node()
413 static int is_last_write(const struct ubifs_info *c, void *buf, int offs) in is_last_write()
440 static void clean_buf(const struct ubifs_info *c, void **buf, int lnum, in clean_buf()
469 static int no_more_nodes(const struct ubifs_info *c, void *buf, int len, in no_more_nodes()
502 static int fix_unclean_leb(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in fix_unclean_leb()
633 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, in ubifs_recover_leb()
810 static int get_cs_sqnum(struct ubifs_info *c, int lnum, int offs, in get_cs_sqnum()
[all …]
Dlpt.c58 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom()
137 int ubifs_calc_lpt_geom(struct ubifs_info *c) in ubifs_calc_lpt_geom()
174 static int calc_dflt_lpt_geom(struct ubifs_info *c, int *main_lebs, in calc_dflt_lpt_geom()
234 static void pack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, uint32_t val, int nrbit… in pack_bits()
285 uint32_t ubifs_unpack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, int nrbits) in ubifs_unpack_bits()
352 void ubifs_pack_pnode(struct ubifs_info *c, void *buf, in ubifs_pack_pnode()
385 void ubifs_pack_nnode(struct ubifs_info *c, void *buf, in ubifs_pack_nnode()
417 void ubifs_pack_ltab(struct ubifs_info *c, void *buf, in ubifs_pack_ltab()
442 void ubifs_pack_lsave(struct ubifs_info *c, void *buf, int *lsave) in ubifs_pack_lsave()
464 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt()
[all …]
Dfile.c60 struct ubifs_info *c = inode->i_sb->s_fs_info; in read_block()
118 struct ubifs_info *c = inode->i_sb->s_fs_info; in do_readpage()
171 struct ubifs_info *c = inode->i_sb->s_fs_info; in do_readpage()
208 static void release_new_page_budget(struct ubifs_info *c) in release_new_page_budget()
222 static void release_existing_page_budget(struct ubifs_info *c) in release_existing_page_budget()
234 struct ubifs_info *c = inode->i_sb->s_fs_info; in write_begin_slow()
337 static int allocate_budget(struct ubifs_info *c, struct page *page, in allocate_budget()
438 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_write_begin()
532 static void cancel_budget(struct ubifs_info *c, struct page *page, in cancel_budget()
554 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_write_end()
[all …]
Dfind.c54 static int valuable(struct ubifs_info *c, const struct ubifs_lprops *lprops) in valuable()
95 static int scan_for_dirty_cb(struct ubifs_info *c, in scan_for_dirty_cb()
136 static const struct ubifs_lprops *scan_for_dirty(struct ubifs_info *c, in scan_for_dirty()
233 int ubifs_find_dirty_leb(struct ubifs_info *c, struct ubifs_lprops *ret_lp, in ubifs_find_dirty_leb()
362 static int scan_for_free_cb(struct ubifs_info *c, in scan_for_free_cb()
407 const struct ubifs_lprops *do_find_free_space(struct ubifs_info *c, in do_find_free_space()
493 int ubifs_find_free_space(struct ubifs_info *c, int min_space, int *offs, in ubifs_find_free_space()
602 static int scan_for_idx_cb(struct ubifs_info *c, in scan_for_idx_cb()
633 static const struct ubifs_lprops *scan_for_leb_for_idx(struct ubifs_info *c) in scan_for_leb_for_idx()
673 int ubifs_find_free_leb_for_idx(struct ubifs_info *c) in ubifs_find_free_leb_for_idx()
[all …]
Dlog.c32 static int dbg_check_bud_bytes(struct ubifs_info *c);
42 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum) in ubifs_search_bud()
71 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum) in ubifs_get_wbuf()
102 static inline long long empty_log_bytes(const struct ubifs_info *c) in empty_log_bytes()
124 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud) in ubifs_add_bud()
176 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log()
300 static void remove_buds(struct ubifs_info *c) in remove_buds()
359 int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum) in ubifs_log_start_commit()
458 int ubifs_log_end_commit(struct ubifs_info *c, int ltail_lnum) in ubifs_log_end_commit()
507 int ubifs_log_post_commit(struct ubifs_info *c, int old_ltail_lnum) in ubifs_log_post_commit()
[all …]
Dio.c82 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode()
99 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read()
117 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write()
138 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len) in ubifs_leb_change()
158 int ubifs_leb_unmap(struct ubifs_info *c, int lnum) in ubifs_leb_unmap()
177 int ubifs_leb_map(struct ubifs_info *c, int lnum) in ubifs_leb_map()
196 int ubifs_is_mapped(const struct ubifs_info *c, int lnum) in ubifs_is_mapped()
237 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, in ubifs_check_node()
330 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad()
360 static unsigned long long next_sqnum(struct ubifs_info *c) in next_sqnum()
[all …]
Dtnc_commit.c37 static int make_idx_node(struct ubifs_info *c, struct ubifs_idx_node *idx, in make_idx_node()
113 static int fill_gap(struct ubifs_info *c, int lnum, int gap_start, int gap_end, in fill_gap()
170 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx()
205 static int is_idx_node_in_use(struct ubifs_info *c, union ubifs_key *key, in is_idx_node_in_use()
231 static int layout_leb_in_gaps(struct ubifs_info *c, int p) in layout_leb_in_gaps()
341 static int get_leb_cnt(struct ubifs_info *c, int cnt) in get_leb_cnt()
363 static int layout_in_gaps(struct ubifs_info *c, int cnt) in layout_in_gaps()
436 static int layout_in_empty_space(struct ubifs_info *c) in layout_in_empty_space()
575 static int layout_commit(struct ubifs_info *c, int no_space, int cnt) in layout_commit()
649 static int get_znodes_to_commit(struct ubifs_info *c) in get_znodes_to_commit()
[all …]
Dsuper.c67 static int validate_inode(struct ubifs_info *c, const struct inode *inode) in validate_inode()
106 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget()
296 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_write_inode()
340 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_evict_inode()
387 struct ubifs_info *c = inode->i_sb->s_fs_info; in ubifs_dirty_inode()
399 struct ubifs_info *c = dentry->d_sb->s_fs_info; in ubifs_statfs()
426 struct ubifs_info *c = root->d_sb->s_fs_info; in ubifs_show_options()
457 struct ubifs_info *c = sb->s_fs_info; in ubifs_sync_fs()
500 static int init_constants_early(struct ubifs_info *c) in init_constants_early()
641 static int bud_wbuf_callback(struct ubifs_info *c, int lnum, int free, int pad) in bud_wbuf_callback()
[all …]
Dscan.c69 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node()
137 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, in ubifs_start_scan()
175 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_end_scan()
193 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_add_snod()
237 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, in ubifs_scanned_corruption()
266 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum, in ubifs_scan()
Dgc.c81 static int switch_gc_head(struct ubifs_info *c) in switch_gc_head()
124 struct ubifs_info *c = priv; in data_nodes_cmp()
168 struct ubifs_info *c = priv; in nondata_nodes_cmp()
243 static int sort_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in sort_nodes()
317 static int move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in move_node()
345 static int move_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb) in move_nodes()
442 static int gc_sync_wbufs(struct ubifs_info *c) in gc_sync_wbufs()
465 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp) in ubifs_garbage_collect_leb()
644 int ubifs_garbage_collect(struct ubifs_info *c, int anyway) in ubifs_garbage_collect()
835 int ubifs_gc_start_commit(struct ubifs_info *c) in ubifs_gc_start_commit()
[all …]
Dcommit.c68 static int nothing_to_commit(struct ubifs_info *c) in nothing_to_commit()
109 static int do_commit(struct ubifs_info *c) in do_commit()
244 static int run_bg_commit(struct ubifs_info *c) in run_bg_commit()
290 struct ubifs_info *c = info; in ubifs_bg_thread()
338 void ubifs_commit_required(struct ubifs_info *c) in ubifs_commit_required()
368 void ubifs_request_bg_commit(struct ubifs_info *c) in ubifs_request_bg_commit()
387 static int wait_for_commit(struct ubifs_info *c) in wait_for_commit()
411 int ubifs_run_commit(struct ubifs_info *c) in ubifs_run_commit()
479 int ubifs_gc_should_commit(struct ubifs_info *c) in ubifs_gc_should_commit()
526 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot) in dbg_old_index_check_init()
[all …]
Ddebug.c102 const char *dbg_snprintf_key(const struct ubifs_info *c, in dbg_snprintf_key()
234 void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode) in ubifs_dump_inode()
304 void ubifs_dump_node(const struct ubifs_info *c, const void *node) in ubifs_dump_node()
581 void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi) in ubifs_dump_budg()
649 void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) in ubifs_dump_lprop()
740 void ubifs_dump_lprops(struct ubifs_info *c) in ubifs_dump_lprops()
762 void ubifs_dump_lpt_info(struct ubifs_info *c) in ubifs_dump_lpt_info()
800 void ubifs_dump_sleb(const struct ubifs_info *c, in ubifs_dump_sleb()
816 void ubifs_dump_leb(const struct ubifs_info *c, int lnum) in ubifs_dump_leb()
854 void ubifs_dump_znode(const struct ubifs_info *c, in ubifs_dump_znode()
[all …]
Dshrinker.c70 static int shrink_tnc(struct ubifs_info *c, int nr, int age, int *contention) in shrink_tnc()
158 struct ubifs_info *c; in shrink_tnc_trees()
170 c = list_entry(p, struct ubifs_info, infos_list); in shrink_tnc_trees()
228 struct ubifs_info *c; in kick_a_thread()
Dtnc_misc.c41 struct ubifs_znode *ubifs_tnc_levelorder_next(const struct ubifs_info *c, in ubifs_tnc_levelorder_next()
137 int ubifs_search_zbranch(const struct ubifs_info *c, in ubifs_search_zbranch()
206 struct ubifs_znode *ubifs_tnc_postorder_next(const struct ubifs_info *c, in ubifs_tnc_postorder_next()
233 long ubifs_destroy_tnc_subtree(const struct ubifs_info *c, in ubifs_destroy_tnc_subtree()
279 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len, in read_znode()
412 struct ubifs_znode *ubifs_load_znode(struct ubifs_info *c, in ubifs_load_znode()
464 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr, in ubifs_tnc_read_node()

12