Lines Matching refs:whichfork
479 int whichfork,
490 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) {
495 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork));
500 ifp = XFS_IFORK_PTR(ip, whichfork);
513 memcpy(ifp->if_u1.if_data, XFS_DFORK_PTR(dip, whichfork), size);
532 int whichfork)
540 ifp = XFS_IFORK_PTR(ip, whichfork);
541 nex = XFS_DFORK_NEXTENTS(dip, whichfork);
549 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) {
568 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork);
575 XFS_BMAP_TRACE_EXLIST(ip, nex, whichfork);
576 if (whichfork != XFS_DATA_FORK ||
602 int whichfork)
610 ifp = XFS_IFORK_PTR(ip, whichfork);
611 dfp = (xfs_bmdr_block_t *)XFS_DFORK_PTR(dip, whichfork);
622 if (unlikely(XFS_IFORK_NEXTENTS(ip, whichfork) <= ifp->if_ext_max
624 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)
625 || XFS_IFORK_NEXTENTS(ip, whichfork) > ip->i_d.di_nblocks)) {
642 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork),
916 int whichfork)
922 if (unlikely(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)) {
927 nextents = XFS_IFORK_NEXTENTS(ip, whichfork);
928 ifp = XFS_IFORK_PTR(ip, whichfork);
937 error = xfs_bmap_read_extents(tp, ip, whichfork);
2169 int whichfork)
2187 ifp = XFS_IFORK_PTR(ip, whichfork);
2218 XFS_IFORK_SIZE(ip, whichfork) + XFS_BROOT_SIZE_ADJ);
2271 XFS_IFORK_SIZE(ip, whichfork) + XFS_BROOT_SIZE_ADJ);
2295 int whichfork)
2305 ifp = XFS_IFORK_PTR(ip, whichfork);
2365 ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork));
2371 int whichfork)
2375 ifp = XFS_IFORK_PTR(ip, whichfork);
2387 if (XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL) {
2405 if (whichfork == XFS_ATTR_FORK) {
2454 int whichfork)
2462 ifp = XFS_IFORK_PTR(ip, whichfork);
2467 XFS_BMAP_TRACE_EXLIST(ip, nrecs, whichfork);
2515 int whichfork,
2533 ifp = XFS_IFORK_PTR(ip, whichfork);
2539 ASSERT(whichfork == XFS_ATTR_FORK);
2542 cp = XFS_DFORK_PTR(dip, whichfork);
2544 switch (XFS_IFORK_FORMAT(ip, whichfork)) {
2546 if ((iip->ili_format.ilf_fields & dataflag[whichfork]) &&
2549 ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork));
2556 !(iip->ili_format.ilf_fields & extflag[whichfork]));
2561 if ((iip->ili_format.ilf_fields & extflag[whichfork]) &&
2563 ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) > 0);
2565 whichfork);
2570 if ((iip->ili_format.ilf_fields & brootflag[whichfork]) &&
2574 (XFS_IFORK_SIZE(ip, whichfork) +
2578 XFS_DFORK_SIZE(dip, mp, whichfork));
2584 ASSERT(whichfork == XFS_DATA_FORK);
2591 ASSERT(whichfork == XFS_DATA_FORK);