Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/xfs/scrub/
Dquota.c114 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
120 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
123 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
143 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
145 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
148 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
150 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
153 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
155 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
170 xchk_fblock_set_warning(sc, XFS_DATA_FORK, in xchk_quota_item()
[all …]
Ddir.c67 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_check_ftype()
81 if (!xchk_fblock_xref_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_check_ftype()
89 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
128 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
135 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
138 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
146 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
149 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
162 if (!xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_actor()
166 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
[all …]
Dparent.c141 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate()
168 xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error); in xchk_parent_validate()
171 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
174 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate()
187 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, in xchk_parent_validate()
191 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate()
209 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
228 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
244 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent_validate()
275 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_parent()
[all …]
Dsymlink.c53 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xchk_symlink()
58 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink()
66 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink()
72 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_symlink()
75 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_symlink()
Dbmap.c287 case XFS_DATA_FORK: in xchk_bmap_extent_xref()
558 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
569 case XFS_DATA_FORK: in xchk_bmap_check_rmaps()
616 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
618 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
640 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
719 return xchk_bmap(sc, XFS_DATA_FORK); in xchk_bmap_data()
Drtbitmap.c64 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_rtbitmap_rec()
81 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_rtbitmap()
/linux-4.19.296/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.c273 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname()
367 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup()
441 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename()
502 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
604 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isblock()
624 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isleaf()
689 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode()
Dxfs_dir2_sf.c246 xfs_init_local_fork(dp, XFS_DATA_FORK, dst, size); in xfs_dir2_block_to_sf()
382 XFS_DATA_FORK); in xfs_dir2_sf_addname_easy()
467 xfs_idata_realloc(dp, -old_isize, XFS_DATA_FORK); in xfs_dir2_sf_addname_hard()
468 xfs_idata_realloc(dp, new_isize, XFS_DATA_FORK); in xfs_dir2_sf_addname_hard()
645 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_dir2_sf_verify()
760 xfs_idata_realloc(dp, size, XFS_DATA_FORK); in xfs_dir2_sf_create()
934 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1110 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
1111 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
1183 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8()
[all …]
Dxfs_trans_resv.c268 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), blksz) + in xfs_calc_write_reservation()
274 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_write_reservation()
316 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1, blksz); in xfs_calc_itruncate_reservation()
595 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), in xfs_calc_growrtalloc_reservation()
672 xfs_calc_buf_res(XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1, in xfs_calc_addafork_reservation()
762 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), 0)), in xfs_calc_attrrm_reservation()
Dxfs_inode_fork.c71 error = xfs_iformat_local(ip, dip, XFS_DATA_FORK, size); in xfs_iformat_fork()
74 error = xfs_iformat_extents(ip, dip, XFS_DATA_FORK); in xfs_iformat_fork()
77 error = xfs_iformat_btree(ip, dip, XFS_DATA_FORK); in xfs_iformat_fork()
124 xfs_idestroy_fork(ip, XFS_DATA_FORK); in xfs_iformat_fork()
652 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_types.h87 #define XFS_DATA_FORK 0 macro
Dxfs_bmap.c81 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels()
176 level < XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK); in xfs_bmap_worst_indlen()
182 return rval + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) - in xfs_bmap_worst_indlen()
841 ASSERT(!(S_ISREG(VFS_I(ip)->i_mode) && whichfork == XFS_DATA_FORK)); in xfs_bmap_local_to_extents()
935 cur = xfs_bmbt_init_cursor(mp, tp, ip, XFS_DATA_FORK); in xfs_bmap_add_attrfork_btree()
972 XFS_DATA_FORK); in xfs_bmap_add_attrfork_extents()
1007 dargs.whichfork = XFS_DATA_FORK; in xfs_bmap_add_attrfork_local()
1014 XFS_DATA_FORK, in xfs_bmap_add_attrfork_local()
1505 if (whichfork == XFS_DATA_FORK) in xfs_bmap_one_block()
1517 if (rval && whichfork == XFS_DATA_FORK) in xfs_bmap_one_block()
[all …]
Dxfs_symlink_remote.c216 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_symlink_shortform_verify()
Dxfs_format.h961 ((w) == XFS_DATA_FORK ? \
976 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip))
979 ((w) == XFS_DATA_FORK ? \
983 ((w) == XFS_DATA_FORK ? \
Dxfs_dir2_block.c130 XFS_DATA_FORK, &xfs_dir3_block_buf_ops); in xfs_dir3_block_read()
1077 ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
1101 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
1102 xfs_bmap_local_to_extents_empty(dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
/linux-4.19.296/fs/xfs/
Dxfs_iomap.c117 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_eof_align_last_fsb()
182 ASSERT(XFS_IFORK_PTR(ip, XFS_DATA_FORK)->if_flags & in xfs_iomap_write_direct()
376 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_iomap_prealloc_size()
509 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_file_iomap_begin_delay()
525 (XFS_IFORK_FORMAT(ip, XFS_DATA_FORK) != XFS_DINODE_FMT_EXTENTS && in xfs_file_iomap_begin_delay()
526 XFS_IFORK_FORMAT(ip, XFS_DATA_FORK) != XFS_DINODE_FMT_BTREE), in xfs_file_iomap_begin_delay()
536 error = xfs_iread_extents(NULL, ip, XFS_DATA_FORK); in xfs_file_iomap_begin_delay()
597 error = xfs_bmapi_reserve_delalloc(ip, XFS_DATA_FORK, offset_fsb, in xfs_file_iomap_begin_delay()
695 nres = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_iomap_write_allocate()
744 XFS_DATA_FORK); in xfs_iomap_write_allocate()
Dxfs_bmap_util.c543 whichfork = XFS_DATA_FORK; in xfs_getbmap()
568 case XFS_DATA_FORK: in xfs_getbmap()
727 error = xfs_bmap_del_extent_delay(ip, XFS_DATA_FORK, &icur, in xfs_bmap_punch_delalloc_range()
840 error = xfs_itruncate_extents_flags(&tp, ip, XFS_DATA_FORK, in xfs_free_eofblocks()
1461 XFS_IFORK_NEXTENTS(tip, XFS_DATA_FORK) > in xfs_swap_extents_check_format()
1462 XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
1467 XFS_IFORK_NEXTENTS(ip, XFS_DATA_FORK) > in xfs_swap_extents_check_format()
1468 XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
1484 if (XFS_IFORK_NEXTENTS(tip, XFS_DATA_FORK) <= in xfs_swap_extents_check_format()
1485 XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
[all …]
Dxfs_bmap_item.c441 XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK), 0, 0, &tp); in xfs_bui_recover()
464 XFS_ATTR_FORK : XFS_DATA_FORK; in xfs_bui_recover()
Dxfs_reflink.c671 XFS_DATA_FORK); in xfs_reflink_end_cow()
1028 resblks = XFS_EXTENTADD_SPACE_RES(ip->i_mount, XFS_DATA_FORK); in xfs_reflink_remap_extent()
1042 qres = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_remap_extent()
1586 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_reflink_inode_has_shared_extents()
1588 error = xfs_iread_extents(tp, ip, XFS_DATA_FORK); in xfs_reflink_inode_has_shared_extents()
Dxfs_dir2_readdir.c248 struct xfs_ifork *ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); in xfs_dir2_leaf_readbuf()
260 error = xfs_iread_extents(args->trans, dp, XFS_DATA_FORK); in xfs_dir2_leaf_readbuf()
Dxfs_symlink.c273 xfs_init_local_fork(ip, XFS_DATA_FORK, target_path, pathlen); in xfs_symlink()
476 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()

12