Lines Matching refs:ifp

57 		struct xfs_ifork	*ifp = xfs_btree_ifork_ptr(cur);  in xfs_rtrefcountbt_get_minrecs()  local
59 return xfs_rtrefcountbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrefcountbt_get_minrecs()
72 struct xfs_ifork *ifp = xfs_btree_ifork_ptr(cur); in xfs_rtrefcountbt_get_maxrecs() local
74 return xfs_rtrefcountbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrefcountbt_get_maxrecs()
308 struct xfs_ifork *ifp = xfs_btree_ifork_ptr(cur); in xfs_rtrefcountbt_broot_realloc() local
311 unsigned int old_size = ifp->if_broot_bytes; in xfs_rtrefcountbt_broot_realloc()
318 return ifp->if_broot; in xfs_rtrefcountbt_broot_realloc()
328 return xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc()
336 broot = xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc()
347 ASSERT(ifp->if_broot != NULL && old_size > 0); in xfs_rtrefcountbt_broot_realloc()
349 return xfs_broot_realloc(ifp, 0); in xfs_rtrefcountbt_broot_realloc()
357 xfs_rtrefcountbt_move_ptrs(mp, ifp->if_broot, old_size, in xfs_rtrefcountbt_broot_realloc()
359 broot = xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc()
434 struct xfs_ifork *ifp; in xfs_rtrefcountbt_commit_staged_btree() local
445 ifp = xfs_ifork_ptr(cur->bc_ino.ip, XFS_DATA_FORK); in xfs_rtrefcountbt_commit_staged_btree()
446 xfs_idestroy_fork(ifp); in xfs_rtrefcountbt_commit_staged_btree()
447 memcpy(ifp, ifake->if_fork, sizeof(struct xfs_ifork)); in xfs_rtrefcountbt_commit_staged_btree()
719 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, XFS_DATA_FORK); in xfs_iflush_rtrefcount() local
722 ASSERT(ifp->if_broot != NULL); in xfs_iflush_rtrefcount()
723 ASSERT(ifp->if_broot_bytes > 0); in xfs_iflush_rtrefcount()
724 ASSERT(xfs_rtrefcount_droot_space(ifp->if_broot) <= in xfs_iflush_rtrefcount()
726 xfs_rtrefcountbt_to_disk(ip->i_mount, ifp->if_broot, in xfs_iflush_rtrefcount()
727 ifp->if_broot_bytes, dfp, in xfs_iflush_rtrefcount()
741 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, XFS_DATA_FORK); in xfs_rtrefcountbt_create() local
745 ifp->if_format = XFS_DINODE_FMT_META_BTREE; in xfs_rtrefcountbt_create()
746 ASSERT(ifp->if_broot_bytes == 0); in xfs_rtrefcountbt_create()
747 ASSERT(ifp->if_bytes == 0); in xfs_rtrefcountbt_create()
750 broot = xfs_broot_realloc(ifp, in xfs_rtrefcountbt_create()