[XFS] The last argument "lsn" of xfs_trans_commit() is always called with
NULL. Patch provided by Eric Sandeen. SGI-PV: 961693 SGI-Modid: xfs-linux-melb:xfs-kern:28199a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:

committed by
Tim Shimmin

parent
5b94f675f5
commit
1c72bf9003
@@ -753,7 +753,6 @@ int
|
||||
_xfs_trans_commit(
|
||||
xfs_trans_t *tp,
|
||||
uint flags,
|
||||
xfs_lsn_t *commit_lsn_p,
|
||||
int *log_flushed)
|
||||
{
|
||||
xfs_log_iovec_t *log_vector;
|
||||
@@ -812,8 +811,6 @@ shut_us_down:
|
||||
xfs_trans_free_busy(tp);
|
||||
xfs_trans_free(tp);
|
||||
XFS_STATS_INC(xs_trans_empty);
|
||||
if (commit_lsn_p)
|
||||
*commit_lsn_p = commit_lsn;
|
||||
return (shutdown);
|
||||
}
|
||||
ASSERT(tp->t_ticket != NULL);
|
||||
@@ -864,9 +861,6 @@ shut_us_down:
|
||||
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
|
||||
* had pinned, clean up, free trans structure, and return error.
|
||||
|
Reference in New Issue
Block a user