|
|
| version 1.177, 2007/01/10 14:42:05 | version 1.178, 2007/03/02 02:59:33 |
|---|---|
| Line 753 int | Line 753 int |
| _xfs_trans_commit( | _xfs_trans_commit( |
| xfs_trans_t *tp, | xfs_trans_t *tp, |
| uint flags, | uint flags, |
| xfs_lsn_t *commit_lsn_p, | |
| int *log_flushed) | int *log_flushed) |
| { | { |
| xfs_log_iovec_t *log_vector; | xfs_log_iovec_t *log_vector; |
| Line 812 shut_us_down: | Line 811 shut_us_down: |
| xfs_trans_free_busy(tp); | xfs_trans_free_busy(tp); |
| xfs_trans_free(tp); | xfs_trans_free(tp); |
| XFS_STATS_INC(xs_trans_empty); | XFS_STATS_INC(xs_trans_empty); |
| if (commit_lsn_p) | |
| *commit_lsn_p = commit_lsn; | |
| return (shutdown); | return (shutdown); |
| } | } |
| ASSERT(tp->t_ticket != NULL); | ASSERT(tp->t_ticket != NULL); |
| Line 864 shut_us_down: | Line 861 shut_us_down: |
| kmem_free(log_vector, nvec * sizeof(xfs_log_iovec_t)); | kmem_free(log_vector, nvec * sizeof(xfs_log_iovec_t)); |
| } | } |
| if (commit_lsn_p) | |
| *commit_lsn_p = commit_lsn; | |
| /* | /* |
| * If we got a log write error. Unpin the logitems that we | * If we got a log write error. Unpin the logitems that we |
| * had pinned, clean up, free trans structure, and return error. | * had pinned, clean up, free trans structure, and return error. |