| /linux/fs/xfs/scrub/ |
| H A D | bmap.c | 140 int whichfork; member 158 if (xfs_ifork_is_realtime(info->sc->ip, info->whichfork)) in xchk_bmap_get_rmap() 164 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap() 173 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap() 194 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap() 222 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 227 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 232 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 237 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 242 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 584 xchk_bmap_btree(struct xfs_scrub * sc,int whichfork,struct xchk_bmap_info * info) xchk_bmap_btree() argument 612 int whichfork; global() member 693 xchk_bmap_check_ag_rmaps(struct xfs_scrub * sc,int whichfork,struct xfs_perag * pag) xchk_bmap_check_ag_rmaps() argument 841 xchk_bmap_check_rmaps(struct xfs_scrub * sc,int whichfork) xchk_bmap_check_rmaps() argument 1020 xchk_bmap(struct xfs_scrub * sc,int whichfork) xchk_bmap() argument [all...] |
| H A D | tempfile.c | 608 int whichfork, in xrep_tempexch_prep_request() 618 if (whichfork == XFS_COW_FORK) { in xrep_tempexch_prep_request() 624 if (!xfs_ifork_ptr(sc->ip, whichfork) || in xrep_tempexch_prep_request() 625 !xfs_ifork_ptr(sc->tempip, whichfork)) { in xrep_tempexch_prep_request() 626 ASSERT(xfs_ifork_ptr(sc->ip, whichfork) != NULL); in xrep_tempexch_prep_request() 627 ASSERT(xfs_ifork_ptr(sc->tempip, whichfork) != NULL); in xrep_tempexch_prep_request() 636 switch (whichfork) { in xrep_tempexch_prep_request() 654 int whichfork) in xrep_tempexch_estimate_sf_resblks() 657 if (S_ISLNK(VFS_I(sc->ip)->i_mode) && whichfork == XFS_DATA_FORK) in xrep_tempexch_estimate_sf_resblks() 661 return xfs_dabuf_nfsb(sc->mp, whichfork); in xrep_tempexch_estimate_sf_resblks() 609 xrep_tempexch_prep_request(struct xfs_scrub * sc,int whichfork,xfs_fileoff_t off,xfs_filblks_t len,struct xrep_tempexch * tx) xrep_tempexch_prep_request() argument 655 xrep_tempexch_estimate_sf_resblks(struct xfs_scrub * sc,int whichfork) xrep_tempexch_estimate_sf_resblks() argument 678 int whichfork = xfs_exchmaps_reqfork(req); xrep_tempexch_estimate() local 817 xrep_tempexch_trans_reserve(struct xfs_scrub * sc,int whichfork,xfs_fileoff_t off,xfs_filblks_t len,struct xrep_tempexch * tx) xrep_tempexch_trans_reserve() argument 857 xrep_tempexch_trans_alloc(struct xfs_scrub * sc,int whichfork,struct xrep_tempexch * tx) xrep_tempexch_trans_alloc() argument 933 xrep_tempfile_copyout_local(struct xfs_scrub * sc,int whichfork) xrep_tempfile_copyout_local() argument [all...] |
| H A D | common.h | 17 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork, 23 int whichfork, xfs_fileoff_t offset, int *error); 29 int whichfork, xfs_fileoff_t offset); 37 void xchk_fblock_set_corrupt(struct xfs_scrub *sc, int whichfork, 49 int whichfork, xfs_fileoff_t offset); 52 void xchk_fblock_set_warning(struct xfs_scrub *sc, int whichfork, 262 int xchk_inode_count_blocks(struct xfs_scrub *sc, int whichfork, in xchk_need_intent_drain()
|
| H A 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,
|
| H A D | reap.c | 112 int whichfork; member 1289 xfs_rmap_inode_owner(&oinfo, rs->ip, rs->whichfork, imap->br_startoff); 1358 int bmap_flags = xfs_bmapi_aflag(rs->whichfork); in xreap_bmapi_binval() 1486 xfs_bmap_unmap_extent(sc->tp, rs->ip, rs->whichfork, imap); in xrep_reap_bmapi_iter() 1518 xfs_bmap_unmap_extent(sc->tp, rs->ip, rs->whichfork, imap); in xreap_bmapi_binval_blocksize() 1641 trace_xreap_ifork_extent(sc, rs->ip, rs->whichfork, imap); 1682 int whichfork) in xrep_reap_ifork() 1687 .whichfork = whichfork, in xrep_reap_ifork() 1690 int bmap_flags = xfs_bmapi_aflag(whichfork); in xrep_reap_ifork() 1645 xrep_reap_ifork(struct xfs_scrub * sc,struct xfs_inode * ip,int whichfork) xrep_reap_ifork() argument [all...] |
| H A D | rmap_repair.c | 316 int whichfork; member 351 if (rf->whichfork == XFS_ATTR_FORK) in xrep_rmap_visit_bmbt() 423 xfs_rmap_ino_bmbt_owner(&oinfo, rf->accum.rm_owner, rf->whichfork); in xrep_rmap_scan_iroot_btree() 452 ifp = xfs_ifork_ptr(ip, rf->whichfork); in xrep_rmap_scan_bmbt() 453 cur = xfs_bmbt_init_cursor(rr->sc->mp, rr->sc->tp, ip, rf->whichfork); in xrep_rmap_scan_bmbt() 455 if (!xfs_ifork_is_realtime(ip, rf->whichfork) && in xrep_rmap_scan_bmbt() 513 if (rf->whichfork != XFS_DATA_FORK) in xrep_rmap_scan_meta_btree() 570 int whichfork) in xrep_rmap_scan_ifork() argument 575 .whichfork = whichfork, in xrep_rmap_scan_ifork() [all...] |
| H A D | trace.h | 329 TP_PROTO(struct xfs_scrub *sc, int whichfork, 331 TP_ARGS(sc, whichfork, offset, error, ret_ip), 335 __field(int, whichfork) 344 __entry->whichfork = whichfork; 353 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS), 428 TP_PROTO(struct xfs_scrub *sc, int whichfork, 430 TP_ARGS(sc, whichfork, offset, ret_ip), 434 __field(int, whichfork) 442 __entry->whichfork [all...] |
| H A D | inode_repair.c | 874 int whichfork) in xrep_dinode_bad_extents_fork() 882 nex = xfs_dfork_nextents(dip, whichfork); in xrep_dinode_bad_extents_fork() 886 dp = XFS_DFORK_PTR(dip, whichfork); in xrep_dinode_bad_extents_fork() 893 fa = xfs_bmap_validate_extent_raw(sc->mp, isrt, whichfork, in xrep_dinode_bad_extents_fork() 908 int whichfork) in xrep_dinode_bad_bmbt_fork() 917 nex = xfs_dfork_nextents(dip, whichfork); in xrep_dinode_bad_bmbt_fork() 924 dfp = XFS_DFORK_PTR(dip, whichfork); in xrep_dinode_bad_bmbt_fork() 930 if (level == 0 || level > XFS_BM_MAXLEVELS(sc->mp, whichfork)) in xrep_dinode_bad_bmbt_fork() 1016 int whichfork) in xrep_dinode_bad_metabt_fork() 1018 if (whichfork ! in xrep_dinode_bad_metabt_fork() 868 xrep_dinode_bad_extents_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size,int whichfork) xrep_dinode_bad_extents_fork() argument 902 xrep_dinode_bad_bmbt_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size,int whichfork) xrep_dinode_bad_bmbt_fork() argument 1010 xrep_dinode_bad_metabt_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size,int whichfork) xrep_dinode_bad_metabt_fork() argument [all...] |
| H A D | dabtree.h | 41 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
|
| H A D | reap.h | 16 int xrep_reap_ifork(struct xfs_scrub *sc, struct xfs_inode *ip, int whichfork);
|
| H A D | tempfile.h | 39 void xrep_tempfile_copyout_local(struct xfs_scrub *sc, int whichfork);
|
| H A D | repair.h | 81 int xrep_ino_ensure_extent_count(struct xfs_scrub *sc, int whichfork, 84 void xrep_reset_fork_to_extents(struct xfs_scrub *sc, int whichfork); 85 int xrep_bmap(struct xfs_scrub *sc, int whichfork, bool allow_unwritten);
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_da_btree.h | 76 int whichfork; /* data or attribute fork */ member 178 int level, struct xfs_buf **bpp, int whichfork); 202 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 205 int whichfork); 217 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 220 int whichfork, const struct xfs_buf_ops *ops); 222 unsigned int flags, int whichfork, 247 int xfs_dabuf_nfsb(struct xfs_mount *mp, int whichfork);
|
| H A D | xfs_inode_fork.h | 103 int whichfork) in xfs_iext_max_nextents() argument 105 switch (whichfork) { in xfs_iext_max_nextents() 146 int whichfork) in xfs_dfork_nextents() argument 148 switch (whichfork) { in xfs_dfork_nextents() 172 int whichfork); 181 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork, 264 int whichfork, uint nr_to_add); 265 bool xfs_ifork_is_realtime(struct xfs_inode *ip, int whichfork);
|
| H A D | xfs_da_btree.c | 133 inline int xfs_dabuf_nfsb(struct xfs_mount *mp, int whichfork) in xfs_dabuf_nfsb() argument 135 if (whichfork == XFS_DATA_FORK) in xfs_dabuf_nfsb() 403 int whichfork, in xfs_da3_node_set_type() argument 425 xfs_dirattr_mark_sick(dp, whichfork); in xfs_da3_node_set_type() 436 int whichfork) in xfs_da3_node_read() argument 440 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read() 444 return xfs_da3_node_set_type(tp, dp, whichfork, *bpp); in xfs_da3_node_read() 453 int whichfork) in xfs_da3_node_read_mapped() argument 459 XFS_FSB_TO_BB(mp, xfs_dabuf_nfsb(mp, whichfork)), 0, in xfs_da3_node_read_mapped() 462 xfs_dirattr_mark_sick(dp, whichfork); in xfs_da3_node_read_mapped() 508 xfs_da3_node_create(struct xfs_da_args * args,xfs_dablk_t blkno,int level,struct xfs_buf ** bpp,int whichfork) xfs_da3_node_create() argument 2724 xfs_dabuf_map(struct xfs_inode * dp,xfs_dablk_t bno,unsigned int flags,int whichfork,struct xfs_buf_map ** mapp,int * nmaps) xfs_dabuf_map() argument 2809 xfs_da_get_buf(struct xfs_trans * tp,struct xfs_inode * dp,xfs_dablk_t bno,struct xfs_buf ** bpp,int whichfork) xfs_da_get_buf() argument 2845 xfs_da_read_buf(struct xfs_trans * tp,struct xfs_inode * dp,xfs_dablk_t bno,unsigned int flags,struct xfs_buf ** bpp,int whichfork,const struct xfs_buf_ops * ops) xfs_da_read_buf() argument 2892 xfs_da_reada_buf(struct xfs_inode * dp,xfs_dablk_t bno,unsigned int flags,int whichfork,const struct xfs_buf_ops * ops) xfs_da_reada_buf() argument [all...] |
| H A D | xfs_exchmaps.c | 139 int whichfork = xfs_exchmaps_reqfork(req); in xfs_exchmaps_check_forks() 142 ifp1 = xfs_ifork_ptr(req->ip1, whichfork); in xfs_exchmaps_check_forks() 143 ifp2 = xfs_ifork_ptr(req->ip2, whichfork); in xfs_exchmaps_check_forks() 384 int whichfork = xfs_exchmaps_whichfork(xmi); in xfs_exchmaps_one_step() 389 xfs_bmap_unmap_extent(tp, xmi->xmi_ip1, whichfork, irec1); in xfs_exchmaps_one_step() 390 xfs_bmap_unmap_extent(tp, xmi->xmi_ip2, whichfork, irec2); in xfs_exchmaps_one_step() 399 xfs_bmap_map_extent(tp, xmi->xmi_ip1, whichfork, irec2); in xfs_exchmaps_one_step() 400 xfs_bmap_map_extent(tp, xmi->xmi_ip2, whichfork, irec1); in xfs_exchmaps_one_step() 403 if (whichfork == XFS_DATA_FORK) { in xfs_exchmaps_one_step() 427 .whichfork in xfs_exchmaps_attr_to_sf() 140 int whichfork = xfs_exchmaps_reqfork(req); xfs_exchmaps_check_forks() local 385 int whichfork = xfs_exchmaps_whichfork(xmi); xfs_exchmaps_one_step() local 844 int whichfork = xfs_exchmaps_reqfork(req); xmi_ensure_delta_nextents() local [all...] |
| H A D | xfs_inode_buf.c | 377 int whichfork) in xfs_dinode_verify_fork() 382 uint32_t fork_size = XFS_DFORK_SIZE(dip, mp, whichfork); in xfs_dinode_verify_fork() 383 uint32_t fork_format = XFS_DFORK_FORMAT(dip, whichfork); in xfs_dinode_verify_fork() 385 di_nextents = xfs_dfork_nextents(dip, whichfork); in xfs_dinode_verify_fork() 391 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork() 434 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) in xfs_dinode_verify_fork() 440 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork() 446 whichfork); in xfs_dinode_verify_fork() 380 xfs_dinode_verify_fork(struct xfs_dinode * dip,struct xfs_mount * mp,int whichfork) xfs_dinode_verify_fork() argument
|
| H A D | xfs_btree_staging.c | 137 cur->bc_ino.whichfork = XFS_STAGING_FORK; in xfs_btree_stage_ifakeroot() 151 int whichfork) in xfs_btree_commit_ifakeroot() argument 159 cur->bc_ino.whichfork = whichfork; in xfs_btree_commit_ifakeroot()
|
| H A D | xfs_btree_staging.h | 46 int whichfork);
|
| /linux/fs/xfs/ |
| H A D | xfs_aops.c | 169 int whichfork; in xfs_map_blocks() local 207 whichfork = XFS_DATA_FORK; in xfs_map_blocks() 222 whichfork = XFS_COW_FORK; in xfs_map_blocks() 269 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks() 278 if (whichfork == XFS_COW_FORK) in xfs_map_blocks() 283 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, in xfs_map_blocks() 293 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) in xfs_map_blocks() 304 if (whichfork != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks() 313 trace_xfs_map_blocks_alloc(ip, offset, count, whichfork, &imap); in xfs_map_blocks()
|
| H A D | xfs_bmap_util.h | 34 void xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, int whichfork, 54 int whichfork, struct xfs_bmbt_irec *rec, 83 int whichfork, xfs_extnum_t *nextents,
|
| H A D | xfs_inode.h | 116 int whichfork) in xfs_ifork_ptr() argument 118 switch (whichfork) { in xfs_ifork_ptr() 156 int whichfork) in xfs_inode_fork_size() argument 158 switch (whichfork) { in xfs_inode_fork_size() 614 int whichfork, in xfs_update_stable_writes() 617 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_update_stable_writes() 676 bool xfs_ifork_zapped(const struct xfs_inode *ip, int whichfork); 604 xfs_itruncate_extents(struct xfs_trans ** tpp,struct xfs_inode * ip,int whichfork,xfs_fsize_t new_size) xfs_itruncate_extents() argument
|
| H A D | xfs_bmap_util.c | 100 int whichfork, in xfs_bmap_count_blocks() argument 105 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_count_blocks() 118 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_count_blocks() 122 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_count_blocks() 256 int whichfork, lock, error = 0; in xfs_getbmap() local 281 whichfork = XFS_ATTR_FORK; in xfs_getbmap() 283 whichfork = XFS_COW_FORK; in xfs_getbmap() 285 whichfork = XFS_DATA_FORK; in xfs_getbmap() 288 switch (whichfork) { in xfs_getbmap() 301 if (!xfs_ifork_ptr(ip, whichfork)) in xfs_getbmap() 438 xfs_bmap_punch_delalloc_range(struct xfs_inode * ip,int whichfork,xfs_off_t start_byte,xfs_off_t end_byte,struct xfs_zone_alloc_ctx * ac) xfs_bmap_punch_delalloc_range() argument [all...] |
| H A D | xfs_health.c | 672 int whichfork) in xfs_bmap_mark_sick() argument 676 switch (whichfork) { in xfs_bmap_mark_sick() 700 xfs_bmap_mark_sick(cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_btree_mark_sick() 716 int whichfork) in xfs_dirattr_mark_sick() argument 720 switch (whichfork) { in xfs_dirattr_mark_sick() 743 xfs_dirattr_mark_sick(args->dp, args->whichfork); in xfs_da_mark_sick()
|
| H A D | xfs_iomap.c | 489 int whichfork, in xfs_iomap_prealloc_size() 497 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_iomap_prealloc_size() 1325 int whichfork, in xfs_bmap_add_extent_hole_delay() 1334 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_delay() 1337 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_add_extent_hole_delay() 1475 int whichfork, in xfs_bmapi_reserve_delalloc() 1484 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmapi_reserve_delalloc() 1491 whichfork == XFS_COW_FORK && !prealloc; in xfs_bmapi_reserve_delalloc() 1564 xfs_bmap_add_extent_hole_delay(ip, whichfork, icur, got); in xfs_bmapi_reserve_delalloc() 1571 if (whichfork in xfs_bmapi_reserve_delalloc() 481 xfs_iomap_prealloc_size(struct xfs_inode * ip,int whichfork,loff_t offset,loff_t count,struct xfs_iext_cursor * icur) xfs_iomap_prealloc_size() argument 1318 xfs_bmap_add_extent_hole_delay(struct xfs_inode * ip,int whichfork,struct xfs_iext_cursor * icur,struct xfs_bmbt_irec * new) xfs_bmap_add_extent_hole_delay() argument 1468 xfs_bmapi_reserve_delalloc(struct xfs_inode * ip,int whichfork,xfs_fileoff_t off,xfs_filblks_t len,xfs_filblks_t prealloc,struct xfs_bmbt_irec * got,struct xfs_iext_cursor * icur,int eof) xfs_bmapi_reserve_delalloc() argument [all...] |