Lines Matching refs:dfc_held
687 error = xfs_defer_save_resources(&dfc->dfc_held, tp); in xfs_defer_ops_capture()
702 for (i = 0; i < dfc->dfc_held.dr_inos; i++) { in xfs_defer_ops_capture()
703 ASSERT(xfs_isilocked(dfc->dfc_held.dr_ip[i], XFS_ILOCK_EXCL)); in xfs_defer_ops_capture()
704 ihold(VFS_I(dfc->dfc_held.dr_ip[i])); in xfs_defer_ops_capture()
707 for (i = 0; i < dfc->dfc_held.dr_bufs; i++) in xfs_defer_ops_capture()
708 xfs_buf_hold(dfc->dfc_held.dr_bp[i]); in xfs_defer_ops_capture()
723 for (i = 0; i < dfc->dfc_held.dr_bufs; i++) in xfs_defer_ops_capture_free()
724 xfs_buf_relse(dfc->dfc_held.dr_bp[i]); in xfs_defer_ops_capture_free()
726 for (i = 0; i < dfc->dfc_held.dr_inos; i++) in xfs_defer_ops_capture_free()
727 xfs_irele(dfc->dfc_held.dr_ip[i]); in xfs_defer_ops_capture_free()
781 if (dfc->dfc_held.dr_inos == 2) in xfs_defer_ops_continue()
782 xfs_lock_two_inodes(dfc->dfc_held.dr_ip[0], XFS_ILOCK_EXCL, in xfs_defer_ops_continue()
783 dfc->dfc_held.dr_ip[1], XFS_ILOCK_EXCL); in xfs_defer_ops_continue()
784 else if (dfc->dfc_held.dr_inos == 1) in xfs_defer_ops_continue()
785 xfs_ilock(dfc->dfc_held.dr_ip[0], XFS_ILOCK_EXCL); in xfs_defer_ops_continue()
786 xfs_defer_restore_resources(tp, &dfc->dfc_held); in xfs_defer_ops_continue()
787 memcpy(dres, &dfc->dfc_held, sizeof(struct xfs_defer_resources)); in xfs_defer_ops_continue()