/fs/xfs/scrub/ |
D | dir.c | 56 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_check_ftype() 77 xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, 0, &error); in xchk_dir_check_ftype() 80 if (!xchk_fblock_xref_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_check_ftype() 88 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype() 131 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor() 137 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor() 144 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 148 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 156 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() 160 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor() [all …]
|
D | quota.c | 95 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 108 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 110 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 113 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 115 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 118 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 120 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() 132 xchk_fblock_set_warning(sc, XFS_DATA_FORK, in xchk_quota_item() 136 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_item() 140 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item() [all …]
|
D | parent.c | 147 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 174 xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error); in xchk_parent_validate() 177 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate() 180 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 193 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, in xchk_parent_validate() 197 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 215 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate() 234 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate() 250 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate() 281 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent() [all …]
|
D | symlink.c | 44 ifp = xfs_ifork_ptr(ip, XFS_DATA_FORK); in xchk_symlink() 49 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink() 57 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink() 63 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_symlink() 66 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink()
|
D | rtbitmap.c | 56 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_rtbitmap_rec() 80 XFS_DATA_FORK); in xchk_rtbitmap_check_extents() 81 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, off, &error)) in xchk_rtbitmap_check_extents() 85 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, off); in xchk_rtbitmap_check_extents() 119 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_rtbitmap()
|
D | bmap.c | 256 case XFS_DATA_FORK: in xchk_bmap_iextent_xref() 578 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps() 591 if (whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps() 636 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap() 638 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap() 654 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap() 721 return xchk_bmap(sc, XFS_DATA_FORK); in xchk_bmap_data()
|
/fs/xfs/libxfs/ |
D | xfs_trans_space.h | 47 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1) 49 (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0)) 61 (XFS_DAENTER_SPACE_RES(mp, XFS_DATA_FORK) * \ 64 XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK) 73 ((mp)->m_dir_geo->fsbcount + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK)) 82 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + (v)) 86 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK)) 92 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + \
|
D | xfs_trans_resv.h | 64 (XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \ 65 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1))) 67 (XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK) + \ 68 XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)
|
D | xfs_dir2.c | 287 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname() 381 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup() 455 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename() 516 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace() 619 error = xfs_bmap_last_offset(args->dp, &eof, XFS_DATA_FORK); in xfs_dir2_isblock() 644 error = xfs_bmap_last_offset(args->dp, &eof, XFS_DATA_FORK); in xfs_dir2_isleaf() 715 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode()
|
D | xfs_dir2_sf.c | 345 xfs_init_local_fork(dp, XFS_DATA_FORK, sfp, size); in xfs_dir2_block_to_sf() 474 XFS_DATA_FORK); in xfs_dir2_sf_addname_easy() 558 xfs_idata_realloc(dp, -old_isize, XFS_DATA_FORK); in xfs_dir2_sf_addname_hard() 559 xfs_idata_realloc(dp, new_isize, XFS_DATA_FORK); in xfs_dir2_sf_addname_hard() 713 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, XFS_DATA_FORK); in xfs_dir2_sf_verify() 840 xfs_idata_realloc(dp, size, XFS_DATA_FORK); in xfs_dir2_sf_create() 998 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1185 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4() 1186 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4() 1258 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8() [all …]
|
D | xfs_trans_resv.c | 301 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), blksz) + in xfs_calc_write_reservation() 307 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_write_reservation() 381 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1, blksz); in xfs_calc_itruncate_reservation() 686 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_growrtalloc_reservation() 763 xfs_calc_buf_res(XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1, in xfs_calc_addafork_reservation() 853 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), 0)), in xfs_calc_attrrm_reservation()
|
D | xfs_types.h | 79 #define XFS_DATA_FORK 0 macro 84 { XFS_DATA_FORK, "data" }, \
|
D | xfs_inode_fork.h | 107 case XFS_DATA_FORK: in xfs_iext_max_nextents() 150 case XFS_DATA_FORK: in xfs_dfork_nextents()
|
D | xfs_inode_fork.c | 247 error = xfs_iformat_local(ip, dip, XFS_DATA_FORK, in xfs_iformat_data_fork() 253 return xfs_iformat_extents(ip, dip, XFS_DATA_FORK); in xfs_iformat_data_fork() 255 return xfs_iformat_btree(ip, dip, XFS_DATA_FORK); in xfs_iformat_data_fork() 642 ASSERT(whichfork == XFS_DATA_FORK); in xfs_iflush_fork()
|
D | xfs_log_format.h | 357 return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT); in xfs_ilog_fbroot() 362 return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT); in xfs_ilog_fext() 367 return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA); in xfs_ilog_fdata()
|
D | xfs_bmap.c | 77 if (whichfork == XFS_DATA_FORK) in xfs_bmap_compute_maxlevels() 182 level < XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK); in xfs_bmap_worst_indlen() 188 return rval + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) - in xfs_bmap_worst_indlen() 787 ASSERT(!(S_ISREG(VFS_I(ip)->i_mode) && whichfork == XFS_DATA_FORK)); in xfs_bmap_local_to_extents() 886 cur = xfs_bmbt_init_cursor(mp, tp, ip, XFS_DATA_FORK); in xfs_bmap_add_attrfork_btree() 927 XFS_DATA_FORK); in xfs_bmap_add_attrfork_extents() 962 dargs.whichfork = XFS_DATA_FORK; in xfs_bmap_add_attrfork_local() 969 XFS_DATA_FORK, in xfs_bmap_add_attrfork_local() 4031 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc() 4061 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_alloc_userdata() [all …]
|
D | xfs_inode_buf.c | 372 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork() 389 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) in xfs_dinode_verify_fork() 538 fa = xfs_dinode_verify_fork(dip, mp, XFS_DATA_FORK); in xfs_dinode_verify()
|
D | xfs_dir2_block.c | 145 XFS_DATA_FORK, &xfs_dir3_block_buf_ops); in xfs_dir3_block_read() 1074 struct xfs_ifork *ifp = xfs_ifork_ptr(dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block() 1116 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block() 1117 xfs_bmap_local_to_extents_empty(tp, dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
|
D | xfs_dir2_leaf.c | 278 err = xfs_da_read_buf(tp, dp, fbno, 0, bpp, XFS_DATA_FORK, in xfs_dir3_leaf_read() 294 err = xfs_da_read_buf(tp, dp, fbno, 0, bpp, XFS_DATA_FORK, in xfs_dir3_leafn_read() 367 &bp, XFS_DATA_FORK); in xfs_dir3_leaf_get_buf() 1713 if ((error = xfs_bmap_last_offset(dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf() 1735 if ((error = xfs_bmap_last_before(tp, dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
|
/fs/xfs/ |
D | xfs_iomap.c | 162 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, XFS_DATA_FORK); in xfs_iomap_eof_align_last_fsb() 253 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, nr_exts); in xfs_iomap_write_direct() 558 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, in xfs_iomap_write_unwritten() 815 trace_xfs_iomap_found(ip, offset, length, XFS_DATA_FORK, &imap); in xfs_direct_write_iomap_begin() 846 trace_xfs_iomap_alloc(ip, offset, length, XFS_DATA_FORK, &imap); in xfs_direct_write_iomap_begin() 915 int allocfork = XFS_DATA_FORK; in xfs_buffered_write_iomap_begin() 941 error = xfs_iread_extents(NULL, ip, XFS_DATA_FORK); in xfs_buffered_write_iomap_begin() 990 trace_xfs_iomap_found(ip, offset, count, XFS_DATA_FORK, in xfs_buffered_write_iomap_begin() 1004 trace_xfs_iomap_found(ip, offset, count, XFS_DATA_FORK, in xfs_buffered_write_iomap_begin() 1069 allocfork == XFS_DATA_FORK ? &imap : &cmap, in xfs_buffered_write_iomap_begin() [all …]
|
D | xfs_bmap_util.c | 441 whichfork = XFS_DATA_FORK; in xfs_getbmap() 465 case XFS_DATA_FORK: in xfs_getbmap() 624 error = xfs_bmap_del_extent_delay(ip, XFS_DATA_FORK, &icur, in xfs_bmap_punch_delalloc_range() 750 error = xfs_itruncate_extents_flags(&tp, ip, XFS_DATA_FORK, in xfs_free_eofblocks() 863 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, in xfs_alloc_file_space() 921 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, in xfs_unmap_extent() 1204 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, in xfs_insert_file_space() 1306 tifp->if_nextents > XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)) in xfs_swap_extents_check_format() 1311 ifp->if_nextents > XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format() 1327 if (tifp->if_nextents <= XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)) in xfs_swap_extents_check_format() [all …]
|
D | xfs_reflink.c | 738 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_end_cow_extent() 752 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, in xfs_reflink_end_cow_extent() 1189 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_remap_extent() 1281 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, iext_delta); in xfs_reflink_remap_extent() 1562 ifp = xfs_ifork_ptr(ip, XFS_DATA_FORK); in xfs_reflink_inode_has_shared_extents() 1563 error = xfs_iread_extents(tp, ip, XFS_DATA_FORK); in xfs_reflink_inode_has_shared_extents()
|
D | xfs_inode.h | 95 case XFS_DATA_FORK: in xfs_ifork_ptr() 135 case XFS_DATA_FORK: in xfs_inode_fork_size()
|
D | xfs_symlink.c | 260 xfs_init_local_fork(ip, XFS_DATA_FORK, target_path, pathlen); in xfs_symlink() 459 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
|
D | xfs_dir2_readdir.c | 251 struct xfs_ifork *ifp = xfs_ifork_ptr(dp, XFS_DATA_FORK); in xfs_dir2_leaf_readbuf() 262 error = xfs_iread_extents(args->trans, dp, XFS_DATA_FORK); in xfs_dir2_leaf_readbuf()
|