• Home
  • Raw
  • Download

Lines Matching refs:whichfork

32 	int			whichfork,  in xfs_init_local_fork()  argument
36 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork()
72 int whichfork, in xfs_iformat_local() argument
80 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
84 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
91 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local()
103 int whichfork) in xfs_iformat_extents() argument
106 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_extents()
107 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iformat_extents()
108 int nex = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_iformat_extents()
119 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) { in xfs_iformat_extents()
132 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_extents()
139 fa = xfs_bmap_validate_extent(ip, whichfork, &new); in xfs_iformat_extents()
168 int whichfork) in xfs_iformat_btree() argument
178 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_btree()
179 dfp = (xfs_bmdr_block_t *)XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_btree()
191 if (unlikely(ifp->if_nextents <= XFS_IFORK_MAXEXT(ip, whichfork) || in xfs_iformat_btree()
194 XFS_DFORK_SIZE(dip, mp, whichfork) || in xfs_iformat_btree()
212 xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork), in xfs_iformat_btree()
349 int whichfork) in xfs_iroot_realloc() argument
367 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iroot_realloc()
397 XFS_IFORK_SIZE(ip, whichfork)); in xfs_iroot_realloc()
452 XFS_IFORK_SIZE(ip, whichfork)); in xfs_iroot_realloc()
476 int whichfork) in xfs_idata_realloc() argument
478 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_idata_realloc()
482 ASSERT(new_size <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_idata_realloc()
540 int whichfork) in xfs_iextents_copy() argument
542 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iextents_copy()
543 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iextents_copy()
554 ASSERT(xfs_bmap_validate_extent(ip, whichfork, &rec) == NULL); in xfs_iextents_copy()
581 int whichfork) in xfs_iflush_fork() argument
595 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iflush_fork()
601 ASSERT(whichfork == XFS_ATTR_FORK); in xfs_iflush_fork()
604 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork()
608 if ((iip->ili_fields & dataflag[whichfork]) && in xfs_iflush_fork()
611 ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_iflush_fork()
618 !(iip->ili_fields & extflag[whichfork])); in xfs_iflush_fork()
619 if ((iip->ili_fields & extflag[whichfork]) && in xfs_iflush_fork()
623 whichfork); in xfs_iflush_fork()
628 if ((iip->ili_fields & brootflag[whichfork]) && in xfs_iflush_fork()
632 XFS_IFORK_SIZE(ip, whichfork)); in xfs_iflush_fork()
635 XFS_DFORK_SIZE(dip, mp, whichfork)); in xfs_iflush_fork()
641 ASSERT(whichfork == XFS_DATA_FORK); in xfs_iflush_fork()