diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-05-07 23:48:42 -0400 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-05-07 23:48:42 -0400 |
commit | 1c72bf90037f32fc2b10e0a05dff2640abce8ee2 (patch) | |
tree | 3903e287eed6b6e942340d01bec360edebff594e /fs/xfs/xfs_iomap.c | |
parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) |
[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>
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index cc6a7b5a9912..cde70e895443 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -543,7 +543,7 @@ xfs_iomap_write_direct( | |||
543 | error = xfs_bmap_finish(&tp, &free_list, &committed); | 543 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
544 | if (error) | 544 | if (error) |
545 | goto error0; | 545 | goto error0; |
546 | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | 546 | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
547 | if (error) | 547 | if (error) |
548 | goto error_out; | 548 | goto error_out; |
549 | 549 | ||
@@ -840,8 +840,7 @@ xfs_iomap_write_allocate( | |||
840 | if (error) | 840 | if (error) |
841 | goto trans_cancel; | 841 | goto trans_cancel; |
842 | 842 | ||
843 | error = xfs_trans_commit(tp, | 843 | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
844 | XFS_TRANS_RELEASE_LOG_RES, NULL); | ||
845 | if (error) | 844 | if (error) |
846 | goto error0; | 845 | goto error0; |
847 | 846 | ||
@@ -948,7 +947,7 @@ xfs_iomap_write_unwritten( | |||
948 | if (error) | 947 | if (error) |
949 | goto error_on_bmapi_transaction; | 948 | goto error_on_bmapi_transaction; |
950 | 949 | ||
951 | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | 950 | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
952 | xfs_iunlock(ip, XFS_ILOCK_EXCL); | 951 | xfs_iunlock(ip, XFS_ILOCK_EXCL); |
953 | if (error) | 952 | if (error) |
954 | return XFS_ERROR(error); | 953 | return XFS_ERROR(error); |