/linux-6.12.1/fs/xfs/scrub/ |
D | repair.h | 13 static inline int xrep_notsupported(struct xfs_scrub *sc) in xrep_notsupported() 30 int xrep_attempt(struct xfs_scrub *sc, struct xchk_stats_run *run); 31 bool xrep_will_attempt(struct xfs_scrub *sc); 33 int xrep_roll_ag_trans(struct xfs_scrub *sc); 34 int xrep_roll_trans(struct xfs_scrub *sc); 35 int xrep_defer_finish(struct xfs_scrub *sc); 38 xfs_extlen_t xrep_calc_ag_resblks(struct xfs_scrub *sc); 42 struct xfs_scrub *sc) in xrep_trans_commit() 54 int xrep_fix_freelist(struct xfs_scrub *sc, int alloc_flags); 71 int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp, [all …]
|
D | common.h | 9 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks); 10 int xchk_trans_alloc_empty(struct xfs_scrub *sc); 11 void xchk_trans_cancel(struct xfs_scrub *sc); 13 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno, 15 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork, 18 bool xchk_xref_process_error(struct xfs_scrub *sc, 20 bool xchk_fblock_xref_process_error(struct xfs_scrub *sc, 23 void xchk_block_set_preen(struct xfs_scrub *sc, 25 void xchk_ino_set_preen(struct xfs_scrub *sc, xfs_ino_t ino); 27 void xchk_set_corrupt(struct xfs_scrub *sc); [all …]
|
D | scrub.h | 9 struct xfs_scrub; 80 int (*setup)(struct xfs_scrub *sc); 83 int (*scrub)(struct xfs_scrub *); 86 int (*repair)(struct xfs_scrub *); 94 int (*repair_eval)(struct xfs_scrub *sc); 120 struct xfs_scrub { struct 206 struct xfs_scrub sc; 207 struct xfs_scrub *parent_sc; 212 struct xfs_scrub_subord *xchk_scrub_create_subord(struct xfs_scrub *sc, 223 struct xfs_scrub *sc, in xchk_should_terminate() [all …]
|
D | tempfile.h | 10 int xrep_tempfile_create(struct xfs_scrub *sc, uint16_t mode); 11 void xrep_tempfile_rele(struct xfs_scrub *sc); 13 bool xrep_tempfile_iolock_nowait(struct xfs_scrub *sc); 14 int xrep_tempfile_iolock_polled(struct xfs_scrub *sc); 15 void xrep_tempfile_iounlock(struct xfs_scrub *sc); 17 void xrep_tempfile_ilock(struct xfs_scrub *sc); 18 bool xrep_tempfile_ilock_nowait(struct xfs_scrub *sc); 19 void xrep_tempfile_iunlock(struct xfs_scrub *sc); 20 void xrep_tempfile_iunlock_both(struct xfs_scrub *sc); 21 void xrep_tempfile_ilock_both(struct xfs_scrub *sc); [all …]
|
D | orphanage.h | 10 int xrep_orphanage_create(struct xfs_scrub *sc); 18 struct xfs_scrub *sc) in xrep_orphanage_try_create() 41 int xrep_orphanage_iolock_two(struct xfs_scrub *sc); 43 void xrep_orphanage_ilock(struct xfs_scrub *sc, unsigned int ilock_flags); 44 bool xrep_orphanage_ilock_nowait(struct xfs_scrub *sc, 46 void xrep_orphanage_iunlock(struct xfs_scrub *sc, unsigned int ilock_flags); 48 void xrep_orphanage_rele(struct xfs_scrub *sc); 52 struct xfs_scrub *sc; 73 bool xrep_orphanage_can_adopt(struct xfs_scrub *sc); 75 int xrep_adoption_trans_alloc(struct xfs_scrub *sc,
|
D | common.c | 73 struct xfs_scrub *sc, in __xchk_process_error() 114 struct xfs_scrub *sc, in xchk_process_error() 125 struct xfs_scrub *sc, in xchk_xref_process_error() 137 struct xfs_scrub *sc, in __xchk_fblock_process_error() 178 struct xfs_scrub *sc, in xchk_fblock_process_error() 189 struct xfs_scrub *sc, in xchk_fblock_xref_process_error() 213 struct xfs_scrub *sc, in xchk_block_set_preen() 227 struct xfs_scrub *sc, in xchk_ino_set_preen() 237 struct xfs_scrub *sc) in xchk_set_corrupt() 246 struct xfs_scrub *sc, in xchk_block_set_corrupt() [all …]
|
D | btree.h | 12 bool xchk_btree_process_error(struct xfs_scrub *sc, 16 bool xchk_btree_xref_process_error(struct xfs_scrub *sc, 20 void xchk_btree_set_corrupt(struct xfs_scrub *sc, 22 void xchk_btree_set_preen(struct xfs_scrub *sc, struct xfs_btree_cur *cur, 26 void xchk_btree_xref_set_corrupt(struct xfs_scrub *sc, 41 struct xfs_scrub *sc; 66 int xchk_btree(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
|
D | findparent.h | 10 struct xfs_scrub *sc; 27 int __xrep_findparent_scan_start(struct xfs_scrub *sc, 30 static inline int xrep_findparent_scan_start(struct xfs_scrub *sc, in xrep_findparent_scan_start() 51 int xrep_findparent_confirm(struct xfs_scrub *sc, xfs_ino_t *parent_ino); 53 xfs_ino_t xrep_findparent_self_reference(struct xfs_scrub *sc); 54 xfs_ino_t xrep_findparent_from_dcache(struct xfs_scrub *sc);
|
D | health.h | 10 void xchk_update_health(struct xfs_scrub *sc); 11 void xchk_ag_btree_del_cursor_if_sick(struct xfs_scrub *sc, 13 void xchk_mark_healthy_if_clean(struct xfs_scrub *sc, unsigned int mask); 14 bool xchk_file_looks_zapped(struct xfs_scrub *sc, unsigned int mask); 15 int xchk_health_record(struct xfs_scrub *sc);
|
D | tempfile.c | 40 struct xfs_scrub *sc, in xrep_tempfile_create() 188 struct xfs_scrub *sc) in xrep_tempfile_iolock_nowait() 205 struct xfs_scrub *sc) in xrep_tempfile_iolock_polled() 221 struct xfs_scrub *sc) in xrep_tempfile_iounlock() 230 struct xfs_scrub *sc) in xrep_tempfile_ilock() 239 struct xfs_scrub *sc) in xrep_tempfile_ilock_nowait() 252 struct xfs_scrub *sc) in xrep_tempfile_iunlock() 264 struct xfs_scrub *sc) in xrep_tempfile_ilock_both() 274 struct xfs_scrub *sc) in xrep_tempfile_iunlock_both() 283 struct xfs_scrub *sc) in xrep_tempfile_rele() [all …]
|
D | newbt.h | 31 struct xfs_scrub *sc; 34 int (*alloc_vextent)(struct xfs_scrub *sc, 60 void xrep_newbt_init_bare(struct xrep_newbt *xnr, struct xfs_scrub *sc); 61 void xrep_newbt_init_ag(struct xrep_newbt *xnr, struct xfs_scrub *sc, 64 int xrep_newbt_init_inode(struct xrep_newbt *xnr, struct xfs_scrub *sc,
|
D | readdir.h | 9 typedef int (*xchk_dirent_fn)(struct xfs_scrub *sc, struct xfs_inode *dp, 13 int xchk_dir_walk(struct xfs_scrub *sc, struct xfs_inode *dp, 16 int xchk_dir_lookup(struct xfs_scrub *sc, struct xfs_inode *dp, 19 int xchk_dir_trylock_for_pptrs(struct xfs_scrub *sc, struct xfs_inode *ip,
|
D | fscounters.c | 71 struct xfs_scrub *sc) in xchk_fscount_warmup() 122 struct xfs_scrub *sc) in xchk_fsfreeze() 133 struct xfs_scrub *sc) in xchk_fsthaw() 153 struct xfs_scrub *sc) in xchk_fscounters_freeze() 183 struct xfs_scrub *sc = fsc->sc; in xchk_fscounters_cleanup() 198 struct xfs_scrub *sc) in xchk_setup_fscounters() 260 struct xfs_scrub *sc, in xchk_fscount_btreeblks() 294 struct xfs_scrub *sc, in xchk_fscount_aggregate_agcounts() 408 struct xfs_scrub *sc, in xchk_fscount_count_frextents() 436 struct xfs_scrub *sc, in xchk_fscount_count_frextents() [all …]
|
D | inode_repair.c | 104 struct xfs_scrub *sc; 146 struct xfs_scrub *sc, in xrep_setup_inode() 167 struct xfs_scrub *sc, in xrep_dinode_buf_core() 210 struct xfs_scrub *sc, in xrep_dinode_buf() 225 struct xfs_scrub *sc, in xrep_dinode_header() 244 struct xfs_scrub *sc, in xrep_dinode_findmode_dirent() 340 struct xfs_scrub *sc = ri->sc; in xrep_dinode_findmode_walk_directory() 394 struct xfs_scrub *sc = ri->sc; in xrep_dinode_find_mode() 485 struct xfs_scrub *sc = ri->sc; in xrep_dinode_mode() 533 struct xfs_scrub *sc, in xrep_dinode_flags() [all …]
|
D | orphanage.c | 51 struct xfs_scrub *sc, in xrep_chown_orphanage() 123 struct xfs_scrub *sc) in xrep_orphanage_create() 214 struct xfs_scrub *sc, in xrep_orphanage_ilock() 223 struct xfs_scrub *sc, in xrep_orphanage_ilock_nowait() 236 struct xfs_scrub *sc, in xrep_orphanage_iunlock() 246 struct xfs_scrub *sc) in xrep_orphanage_iolock_two() 273 struct xfs_scrub *sc) in xrep_orphanage_rele() 290 struct xfs_scrub *sc) in xrep_orphanage_can_adopt() 313 struct xfs_scrub *sc, in xrep_adoption_trans_alloc() 399 struct xfs_scrub *sc = adopt->sc; in xrep_adoption_compute_name() [all …]
|
D | parent.c | 34 struct xfs_scrub *sc) in xchk_setup_parent() 52 struct xfs_scrub *sc; 59 struct xfs_scrub *sc, in xchk_parent_actor() 114 struct xfs_scrub *sc, in xchk_parent_validate() 230 struct xfs_scrub *sc; 258 struct xfs_scrub *sc, in xchk_parent_scan_dotdot() 290 struct xfs_scrub *sc = pp->sc; in xchk_parent_pptr_and_dotdot() 339 struct xfs_scrub *sc, in xchk_parent_lock_dir() 370 struct xfs_scrub *sc = pp->sc; in xchk_parent_dirent() 402 struct xfs_scrub *sc = pp->sc; in xchk_parent_iget() [all …]
|
D | repair.c | 55 struct xfs_scrub *sc, in xrep_attempt() 132 struct xfs_scrub *sc) in xrep_probe() 148 struct xfs_scrub *sc) in xrep_roll_ag_trans() 193 struct xfs_scrub *sc) in xrep_roll_trans() 203 struct xfs_scrub *sc) in xrep_defer_finish() 273 struct xfs_scrub *sc) in xrep_calc_ag_resblks() 410 struct xfs_scrub *sc, in xrep_fix_freelist() 452 struct xfs_scrub *sc; 664 struct xfs_scrub *sc, in xrep_find_ag_btree_roots() 700 struct xfs_scrub *sc, in xrep_update_qflags() [all …]
|
D | symlink_repair.c | 55 struct xfs_scrub *sc, in xrep_setup_symlink() 94 struct xfs_scrub *sc) in xrep_symlink_salvage_remote() 164 struct xfs_scrub *sc) in xrep_symlink_salvage_inline() 202 struct xfs_scrub *sc) in xrep_symlink_salvage() 253 struct xfs_scrub *sc = priv; in xrep_symlink_local_to_remote() 273 struct xfs_scrub *sc, in xrep_symlink_swap_prep() 326 struct xfs_scrub *sc) in xrep_symlink_swap() 361 struct xfs_scrub *sc) in xrep_symlink_reset_fork() 387 struct xfs_scrub *sc) in xrep_symlink_rebuild() 486 struct xfs_scrub *sc) in xrep_symlink()
|
D | findparent.c | 70 struct xfs_scrub *sc; 96 struct xfs_scrub *sc, in xrep_findparent_dirent() 150 struct xfs_scrub *sc = fpi->sc; in xrep_findparent_walk_directory() 215 struct xfs_scrub *sc; in xrep_findparent_live_update() 244 struct xfs_scrub *sc, in __xrep_findparent_scan_start() 302 struct xfs_scrub *sc = pscan->sc; in xrep_findparent_scan() 356 struct xfs_scrub *sc, in xrep_findparent_confirm() 410 struct xfs_scrub *sc) in xrep_findparent_self_reference() 424 struct xfs_scrub *sc) in xrep_findparent_from_dcache()
|
D | attr_repair.h | 11 int xrep_xattr_swap(struct xfs_scrub *sc, struct xrep_tempexch *tx); 12 int xrep_xattr_reset_fork(struct xfs_scrub *sc); 13 int xrep_xattr_reset_tempfile_fork(struct xfs_scrub *sc);
|
D | inode.c | 33 struct xfs_scrub *sc) in xchk_prepare_iscrub() 54 struct xfs_scrub *sc, in xchk_install_handle_iscrub() 74 struct xfs_scrub *sc) in xchk_setup_inode() 213 struct xfs_scrub *sc, in xchk_inode_extsize() 249 struct xfs_scrub *sc, in xchk_inode_cowextsize() 268 struct xfs_scrub *sc, in xchk_inode_flags() 313 struct xfs_scrub *sc, in xchk_inode_flags2() 360 struct xfs_scrub *sc, in xchk_dinode_nsec() 375 struct xfs_scrub *sc, in xchk_dinode() 607 struct xfs_scrub *sc, in xchk_inode_xref_finobt() [all …]
|
D | bmap_repair.c | 70 struct xfs_scrub *sc; 101 struct xfs_scrub *sc = rb->sc; in xrep_bmap_discover_shared() 134 struct xfs_scrub *sc = rb->sc; in xrep_bmap_from_rmap() 186 struct xfs_scrub *sc = rb->sc; in xrep_bmap_check_fork_rmap() 352 struct xfs_scrub *sc = rb->sc; in xrep_bmap_scan_ag() 411 struct xfs_scrub *sc = rb->sc; in xrep_bmap_find_mappings() 491 struct xfs_scrub *sc = rb->sc; in xrep_bmap_reset_counters() 562 struct xfs_scrub *sc = rb->sc; in xrep_bmap_btree_load() 620 struct xfs_scrub *sc = rb->sc; in xrep_bmap_build_new_fork() 702 struct xfs_scrub *sc = rb->sc; in xrep_bmap_remove_old_tree() [all …]
|
D | tempexch.h | 14 int xrep_tempexch_trans_reserve(struct xfs_scrub *sc, int whichfork, 16 int xrep_tempexch_trans_alloc(struct xfs_scrub *sc, int whichfork, 19 int xrep_tempexch_contents(struct xfs_scrub *sc, struct xrep_tempexch *ti);
|
D | listxattr.h | 9 typedef int (*xchk_xattr_fn)(struct xfs_scrub *sc, struct xfs_inode *ip, 14 typedef int (*xchk_xattrleaf_fn)(struct xfs_scrub *sc, void *priv); 16 int xchk_xattr_walk(struct xfs_scrub *sc, struct xfs_inode *ip,
|
D | quota.h | 9 xfs_dqtype_t xchk_quota_to_dqtype(struct xfs_scrub *sc); 14 struct xfs_scrub *sc; 32 void xchk_dqiter_init(struct xchk_dqiter *cursor, struct xfs_scrub *sc,
|