Home
last modified time | relevance | path

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

12

/fs/xfs/scrub/
Ddir.c56 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 …]
Dquota.c95 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 …]
Dparent.c147 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 …]
Dsymlink.c44 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()
Drtbitmap.c56 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()
Dbmap.c256 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/
Dxfs_trans_space.h47 ((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) + \
Dxfs_trans_resv.h64 (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)
Dxfs_dir2.c287 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()
Dxfs_dir2_sf.c345 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 …]
Dxfs_trans_resv.c301 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()
Dxfs_types.h79 #define XFS_DATA_FORK 0 macro
84 { XFS_DATA_FORK, "data" }, \
Dxfs_inode_fork.h107 case XFS_DATA_FORK: in xfs_iext_max_nextents()
150 case XFS_DATA_FORK: in xfs_dfork_nextents()
Dxfs_inode_fork.c247 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()
Dxfs_log_format.h357 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()
Dxfs_bmap.c77 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 …]
Dxfs_inode_buf.c372 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()
Dxfs_dir2_block.c145 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()
Dxfs_dir2_leaf.c278 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/
Dxfs_iomap.c162 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 …]
Dxfs_bmap_util.c441 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 …]
Dxfs_reflink.c738 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()
Dxfs_inode.h95 case XFS_DATA_FORK: in xfs_ifork_ptr()
135 case XFS_DATA_FORK: in xfs_inode_fork_size()
Dxfs_symlink.c260 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()
Dxfs_dir2_readdir.c251 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()

12