Home
last modified time | relevance | path

Searched refs:XFS_DATA_FORK (Results 1 – 25 of 49) sorted by relevance

12

/fs/xfs/scrub/
Ddir.c57 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 …]
Dquota.c103 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 …]
Dparent.c133 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 …]
Dsymlink.c45 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()
Dbmap.c252 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()
Drtbitmap.c57 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/
Dxfs_trans_space.h40 ((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) + \
Dxfs_trans_resv.h66 (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)
Dxfs_inode_fork.h43 ((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 ? \
Dxfs_dir2.c269 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()
Dxfs_dir2_sf.c243 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 …]
Dxfs_trans_resv.c239 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()
Dxfs_inode_fork.c69 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()
Dxfs_log_format.h352 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()
Dxfs_bmap.c76 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 …]
Dxfs_types.h87 #define XFS_DATA_FORK 0 macro
Dxfs_format.h967 ((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 ? \
Dxfs_dir2_block.c127 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()
Dxfs_dir2_leaf.c225 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/
Dxfs_iomap.c158 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 …]
Dxfs_bmap_util.c538 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 …]
Dxfs_reflink.c619 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()
Dxfs_dir2_readdir.c245 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()
Dxfs_bmap_item.c497 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()
Dxfs_symlink.c264 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()

12