Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18164
b: refs/heads/master
c: 0733af2
h: refs/heads/master
v: v3
  • Loading branch information
Ryan Hankins authored and Nathan Scott committed Jan 11, 2006
1 parent cc9dbf1 commit f4b59f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77a7cce42509461067f49c484aee626f62162fbc
refs/heads/master: 0733af213f2859f7228229f3ac053c025f57d0d5
12 changes: 7 additions & 5 deletions trunk/fs/xfs/xfs_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ xfs_trans_cancel(
xfs_log_item_t *lip;
int i;
#endif
xfs_mount_t *mp = tp->t_mountp;

/*
* See if the caller is being too lazy to figure out if
Expand All @@ -1027,8 +1028,9 @@ xfs_trans_cancel(
* corruption and decide to give up.
*/
if ((tp->t_flags & XFS_TRANS_DIRTY) &&
!XFS_FORCED_SHUTDOWN(tp->t_mountp))
xfs_force_shutdown(tp->t_mountp, XFS_CORRUPT_INCORE);
!XFS_FORCED_SHUTDOWN(mp))
XFS_ERROR_REPORT("xfs_trans_cancel", XFS_ERRLEVEL_LOW, mp);
xfs_force_shutdown(mp, XFS_CORRUPT_INCORE);
#ifdef DEBUG
if (!(flags & XFS_TRANS_ABORT)) {
licp = &(tp->t_items);
Expand All @@ -1040,15 +1042,15 @@ xfs_trans_cancel(
}

lip = lidp->lid_item;
if (!XFS_FORCED_SHUTDOWN(tp->t_mountp))
if (!XFS_FORCED_SHUTDOWN(mp))
ASSERT(!(lip->li_type == XFS_LI_EFD));
}
licp = licp->lic_next;
}
}
#endif
xfs_trans_unreserve_and_mod_sb(tp);
XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(tp->t_mountp, tp);
XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(mp, tp);

if (tp->t_ticket) {
if (flags & XFS_TRANS_RELEASE_LOG_RES) {
Expand All @@ -1057,7 +1059,7 @@ xfs_trans_cancel(
} else {
log_flags = 0;
}
xfs_log_done(tp->t_mountp, tp->t_ticket, NULL, log_flags);
xfs_log_done(mp, tp->t_ticket, NULL, log_flags);
}

/* mark this thread as no longer being in a transaction */
Expand Down

0 comments on commit f4b59f0

Please sign in to comment.