diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
| -rw-r--r-- | fs/xfs/xfs_vnodeops.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index bda774a04b8f..52c41714ec54 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
| @@ -51,7 +51,6 @@ | |||
| 51 | #include "xfs_refcache.h" | 51 | #include "xfs_refcache.h" |
| 52 | #include "xfs_trans_space.h" | 52 | #include "xfs_trans_space.h" |
| 53 | #include "xfs_log_priv.h" | 53 | #include "xfs_log_priv.h" |
| 54 | #include "xfs_mac.h" | ||
| 55 | 54 | ||
| 56 | STATIC int | 55 | STATIC int |
| 57 | xfs_open( | 56 | xfs_open( |
| @@ -1381,7 +1380,7 @@ xfs_inactive_symlink_rmt( | |||
| 1381 | /* | 1380 | /* |
| 1382 | * Commit the first transaction. This logs the EFI and the inode. | 1381 | * Commit the first transaction. This logs the EFI and the inode. |
| 1383 | */ | 1382 | */ |
| 1384 | if ((error = xfs_bmap_finish(&tp, &free_list, first_block, &committed))) | 1383 | if ((error = xfs_bmap_finish(&tp, &free_list, &committed))) |
| 1385 | goto error1; | 1384 | goto error1; |
| 1386 | /* | 1385 | /* |
| 1387 | * The transaction must have been committed, since there were | 1386 | * The transaction must have been committed, since there were |
| @@ -1790,8 +1789,7 @@ xfs_inactive( | |||
| 1790 | * Just ignore errors at this point. There is | 1789 | * Just ignore errors at this point. There is |
| 1791 | * nothing we can do except to try to keep going. | 1790 | * nothing we can do except to try to keep going. |
| 1792 | */ | 1791 | */ |
| 1793 | (void) xfs_bmap_finish(&tp, &free_list, first_block, | 1792 | (void) xfs_bmap_finish(&tp, &free_list, &committed); |
| 1794 | &committed); | ||
| 1795 | (void) xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | 1793 | (void) xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); |
| 1796 | } | 1794 | } |
| 1797 | /* | 1795 | /* |
| @@ -2022,7 +2020,7 @@ xfs_create( | |||
| 2022 | IHOLD(ip); | 2020 | IHOLD(ip); |
| 2023 | vp = XFS_ITOV(ip); | 2021 | vp = XFS_ITOV(ip); |
| 2024 | 2022 | ||
| 2025 | error = xfs_bmap_finish(&tp, &free_list, first_block, &committed); | 2023 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
| 2026 | if (error) { | 2024 | if (error) { |
| 2027 | xfs_bmap_cancel(&free_list); | 2025 | xfs_bmap_cancel(&free_list); |
| 2028 | goto abort_rele; | 2026 | goto abort_rele; |
| @@ -2507,7 +2505,7 @@ xfs_remove( | |||
| 2507 | xfs_trans_set_sync(tp); | 2505 | xfs_trans_set_sync(tp); |
| 2508 | } | 2506 | } |
| 2509 | 2507 | ||
| 2510 | error = xfs_bmap_finish(&tp, &free_list, first_block, &committed); | 2508 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
| 2511 | if (error) { | 2509 | if (error) { |
| 2512 | REMOVE_DEBUG_TRACE(__LINE__); | 2510 | REMOVE_DEBUG_TRACE(__LINE__); |
| 2513 | goto error_rele; | 2511 | goto error_rele; |
| @@ -2715,7 +2713,7 @@ xfs_link( | |||
| 2715 | xfs_trans_set_sync(tp); | 2713 | xfs_trans_set_sync(tp); |
| 2716 | } | 2714 | } |
| 2717 | 2715 | ||
| 2718 | error = xfs_bmap_finish (&tp, &free_list, first_block, &committed); | 2716 | error = xfs_bmap_finish (&tp, &free_list, &committed); |
| 2719 | if (error) { | 2717 | if (error) { |
| 2720 | xfs_bmap_cancel(&free_list); | 2718 | xfs_bmap_cancel(&free_list); |
| 2721 | goto abort_return; | 2719 | goto abort_return; |
| @@ -2932,7 +2930,7 @@ xfs_mkdir( | |||
| 2932 | xfs_trans_set_sync(tp); | 2930 | xfs_trans_set_sync(tp); |
| 2933 | } | 2931 | } |
| 2934 | 2932 | ||
| 2935 | error = xfs_bmap_finish(&tp, &free_list, first_block, &committed); | 2933 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
| 2936 | if (error) { | 2934 | if (error) { |
| 2937 | IRELE(cdp); | 2935 | IRELE(cdp); |
| 2938 | goto error2; | 2936 | goto error2; |
| @@ -3183,7 +3181,7 @@ xfs_rmdir( | |||
| 3183 | xfs_trans_set_sync(tp); | 3181 | xfs_trans_set_sync(tp); |
| 3184 | } | 3182 | } |
| 3185 | 3183 | ||
| 3186 | error = xfs_bmap_finish (&tp, &free_list, first_block, &committed); | 3184 | error = xfs_bmap_finish (&tp, &free_list, &committed); |
| 3187 | if (error) { | 3185 | if (error) { |
| 3188 | xfs_bmap_cancel(&free_list); | 3186 | xfs_bmap_cancel(&free_list); |
| 3189 | xfs_trans_cancel(tp, (XFS_TRANS_RELEASE_LOG_RES | | 3187 | xfs_trans_cancel(tp, (XFS_TRANS_RELEASE_LOG_RES | |
| @@ -3533,7 +3531,7 @@ xfs_symlink( | |||
| 3533 | */ | 3531 | */ |
| 3534 | IHOLD(ip); | 3532 | IHOLD(ip); |
| 3535 | 3533 | ||
| 3536 | error = xfs_bmap_finish(&tp, &free_list, first_block, &committed); | 3534 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
| 3537 | if (error) { | 3535 | if (error) { |
| 3538 | goto error2; | 3536 | goto error2; |
| 3539 | } | 3537 | } |
| @@ -4145,7 +4143,7 @@ retry: | |||
| 4145 | /* | 4143 | /* |
| 4146 | * Complete the transaction | 4144 | * Complete the transaction |
| 4147 | */ | 4145 | */ |
| 4148 | error = xfs_bmap_finish(&tp, &free_list, firstfsb, &committed); | 4146 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
| 4149 | if (error) { | 4147 | if (error) { |
| 4150 | goto error0; | 4148 | goto error0; |
| 4151 | } | 4149 | } |
| @@ -4452,7 +4450,7 @@ xfs_free_file_space( | |||
| 4452 | /* | 4450 | /* |
| 4453 | * complete the transaction | 4451 | * complete the transaction |
| 4454 | */ | 4452 | */ |
| 4455 | error = xfs_bmap_finish(&tp, &free_list, firstfsb, &committed); | 4453 | error = xfs_bmap_finish(&tp, &free_list, &committed); |
| 4456 | if (error) { | 4454 | if (error) { |
| 4457 | goto error0; | 4455 | goto error0; |
| 4458 | } | 4456 | } |
