/fs/xfs/scrub/ |
D | dir.c | 57 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_check_ftype() 71 if (!xchk_fblock_xref_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_check_ftype() 79 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype() 118 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor() 124 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor() 131 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 134 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 142 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 145 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 155 if (!xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_actor() [all …]
|
D | quota.c | 103 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 109 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 112 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 132 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 134 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 137 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 139 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 142 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 144 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 159 xchk_fblock_set_warning(sc, XFS_DATA_FORK, in xchk_quota_item() [all …]
|
D | parent.c | 133 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 160 xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error); in xchk_parent_validate() 163 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate() 166 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 179 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, in xchk_parent_validate() 183 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 201 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate() 220 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate() 236 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 267 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent() [all …]
|
D | symlink.c | 45 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xchk_symlink() 50 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink() 58 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink() 64 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_symlink() 67 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink()
|
D | bmap.c | 252 case XFS_DATA_FORK: in xchk_bmap_iextent_xref() 579 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps() 590 case XFS_DATA_FORK: in xchk_bmap_check_rmaps() 637 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap() 639 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap() 661 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap() 733 return xchk_bmap(sc, XFS_DATA_FORK); in xchk_bmap_data()
|
D | rtbitmap.c | 57 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_rtbitmap_rec() 74 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_rtbitmap()
|
/fs/xfs/libxfs/ |
D | xfs_trans_space.h | 40 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1) 42 (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0)) 54 (XFS_DAENTER_SPACE_RES(mp, XFS_DATA_FORK) * \ 57 XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK) 67 ((mp)->m_dir_geo->fsbcount + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK)) 76 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + (v)) 80 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK)) 86 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + \
|
D | xfs_trans_resv.h | 66 (XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \ 67 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1))) 69 (XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK) + \ 70 XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)
|
D | xfs_inode_fork.h | 43 ((w) == XFS_DATA_FORK ? \ 58 ((w) == XFS_DATA_FORK ? \ 64 ((w) == XFS_DATA_FORK ? \ 70 ((w) == XFS_DATA_FORK ? \ 76 ((w) == XFS_DATA_FORK ? \ 82 ((w) == XFS_DATA_FORK ? \
|
D | xfs_dir2.c | 269 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname() 363 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup() 437 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename() 498 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace() 600 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isblock() 620 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isleaf() 685 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode()
|
D | xfs_dir2_sf.c | 243 xfs_init_local_fork(dp, XFS_DATA_FORK, dst, size); in xfs_dir2_block_to_sf() 379 XFS_DATA_FORK); in xfs_dir2_sf_addname_easy() 464 xfs_idata_realloc(dp, -old_isize, XFS_DATA_FORK); in xfs_dir2_sf_addname_hard() 465 xfs_idata_realloc(dp, new_isize, XFS_DATA_FORK); in xfs_dir2_sf_addname_hard() 642 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_dir2_sf_verify() 757 xfs_idata_realloc(dp, size, XFS_DATA_FORK); in xfs_dir2_sf_create() 931 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1107 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4() 1108 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4() 1180 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8() [all …]
|
D | xfs_trans_resv.c | 239 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_write_reservation() 266 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1, in xfs_calc_itruncate_reservation() 536 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_growrtalloc_reservation() 613 xfs_calc_buf_res(XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1, in xfs_calc_addafork_reservation() 703 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), 0)), in xfs_calc_attrrm_reservation()
|
D | xfs_inode_fork.c | 69 error = xfs_iformat_local(ip, dip, XFS_DATA_FORK, size); in xfs_iformat_fork() 72 error = xfs_iformat_extents(ip, dip, XFS_DATA_FORK); in xfs_iformat_fork() 75 error = xfs_iformat_btree(ip, dip, XFS_DATA_FORK); in xfs_iformat_fork() 122 xfs_idestroy_fork(ip, XFS_DATA_FORK); in xfs_iformat_fork() 650 ASSERT(whichfork == XFS_DATA_FORK); in xfs_iflush_fork()
|
D | xfs_log_format.h | 352 return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT); in xfs_ilog_fbroot() 357 return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT); in xfs_ilog_fext() 362 return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA); in xfs_ilog_fdata()
|
D | xfs_bmap.c | 76 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels() 171 level < XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK); in xfs_bmap_worst_indlen() 177 return rval + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) - in xfs_bmap_worst_indlen() 840 ASSERT(!(S_ISREG(VFS_I(ip)->i_mode) && whichfork == XFS_DATA_FORK)); in xfs_bmap_local_to_extents() 934 cur = xfs_bmbt_init_cursor(mp, tp, ip, XFS_DATA_FORK); in xfs_bmap_add_attrfork_btree() 971 XFS_DATA_FORK); in xfs_bmap_add_attrfork_extents() 1006 dargs.whichfork = XFS_DATA_FORK; in xfs_bmap_add_attrfork_local() 1013 XFS_DATA_FORK, in xfs_bmap_add_attrfork_local() 1504 if (whichfork == XFS_DATA_FORK) in xfs_bmap_one_block() 1516 if (rval && whichfork == XFS_DATA_FORK) in xfs_bmap_one_block() [all …]
|
D | xfs_types.h | 87 #define XFS_DATA_FORK 0 macro
|
D | xfs_format.h | 967 ((w) == XFS_DATA_FORK ? \ 982 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip)) 985 ((w) == XFS_DATA_FORK ? \ 989 ((w) == XFS_DATA_FORK ? \
|
D | xfs_dir2_block.c | 127 XFS_DATA_FORK, &xfs_dir3_block_buf_ops); in xfs_dir3_block_read() 1074 ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block() 1098 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block() 1099 xfs_bmap_local_to_extents_empty(tp, dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
|
D | xfs_dir2_leaf.c | 225 XFS_DATA_FORK, &xfs_dir3_leaf1_buf_ops); in xfs_dir3_leaf_read() 242 XFS_DATA_FORK, &xfs_dir3_leafn_buf_ops); in xfs_dir3_leafn_read() 314 -1, &bp, XFS_DATA_FORK); in xfs_dir3_leaf_get_buf() 1668 if ((error = xfs_bmap_last_offset(dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf() 1690 if ((error = xfs_bmap_last_before(tp, dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
|
/fs/xfs/ |
D | xfs_iomap.c | 158 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_eof_align_last_fsb() 206 ASSERT(XFS_IFORK_PTR(ip, XFS_DATA_FORK)->if_flags & in xfs_iomap_write_direct() 543 int whichfork = XFS_DATA_FORK; in xfs_file_iomap_begin_delay() 552 (XFS_IFORK_FORMAT(ip, XFS_DATA_FORK) != XFS_DINODE_FMT_EXTENTS && in xfs_file_iomap_begin_delay() 553 XFS_IFORK_FORMAT(ip, XFS_DATA_FORK) != XFS_DINODE_FMT_BTREE), in xfs_file_iomap_begin_delay() 563 error = xfs_iread_extents(NULL, ip, XFS_DATA_FORK); in xfs_file_iomap_begin_delay() 616 trace_xfs_iomap_found(ip, offset, count, XFS_DATA_FORK, in xfs_file_iomap_begin_delay() 630 trace_xfs_iomap_found(ip, offset, count, XFS_DATA_FORK, in xfs_file_iomap_begin_delay() 687 whichfork == XFS_DATA_FORK ? &imap : &cmap, in xfs_file_iomap_begin_delay() 688 whichfork == XFS_DATA_FORK ? &icur : &ccur, in xfs_file_iomap_begin_delay() [all …]
|
D | xfs_bmap_util.c | 538 whichfork = XFS_DATA_FORK; in xfs_getbmap() 563 case XFS_DATA_FORK: in xfs_getbmap() 722 error = xfs_bmap_del_extent_delay(ip, XFS_DATA_FORK, &icur, in xfs_bmap_punch_delalloc_range() 835 error = xfs_itruncate_extents_flags(&tp, ip, XFS_DATA_FORK, in xfs_free_eofblocks() 1406 XFS_IFORK_NEXTENTS(tip, XFS_DATA_FORK) > in xfs_swap_extents_check_format() 1407 XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)) in xfs_swap_extents_check_format() 1412 XFS_IFORK_NEXTENTS(ip, XFS_DATA_FORK) > in xfs_swap_extents_check_format() 1413 XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format() 1429 if (XFS_IFORK_NEXTENTS(tip, XFS_DATA_FORK) <= in xfs_swap_extents_check_format() 1430 XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)) in xfs_swap_extents_check_format() [all …]
|
D | xfs_reflink.c | 619 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_end_cow_extent() 1022 resblks = XFS_EXTENTADD_SPACE_RES(ip->i_mount, XFS_DATA_FORK); in xfs_reflink_remap_extent() 1149 trace_xfs_reflink_remap_imap(src, srcoff, len, XFS_DATA_FORK, in xfs_reflink_remap_blocks() 1482 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_reflink_inode_has_shared_extents() 1484 error = xfs_iread_extents(tp, ip, XFS_DATA_FORK); in xfs_reflink_inode_has_shared_extents()
|
D | xfs_dir2_readdir.c | 245 struct xfs_ifork *ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); in xfs_dir2_leaf_readbuf() 257 error = xfs_iread_extents(args->trans, dp, XFS_DATA_FORK); in xfs_dir2_leaf_readbuf()
|
D | xfs_bmap_item.c | 497 XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK), 0, 0, &tp); in xfs_bui_recover() 520 XFS_ATTR_FORK : XFS_DATA_FORK; in xfs_bui_recover()
|
D | xfs_symlink.c | 264 xfs_init_local_fork(ip, XFS_DATA_FORK, target_path, pathlen); in xfs_symlink() 467 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
|