|
|
| version 1.689, 2007/02/07 02:50:13 | version 1.690, 2007/03/02 02:59:33 |
|---|---|
| Line 873 xfs_setattr( | Line 873 xfs_setattr( |
| if (mp->m_flags & XFS_MOUNT_WSYNC) | if (mp->m_flags & XFS_MOUNT_WSYNC) |
| xfs_trans_set_sync(tp); | xfs_trans_set_sync(tp); |
| code = xfs_trans_commit(tp, commit_flags, NULL); | code = xfs_trans_commit(tp, commit_flags); |
| } | } |
| /* | /* |
| Line 1176 xfs_fsync( | Line 1176 xfs_fsync( |
| xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
| if (flag & FSYNC_WAIT) | if (flag & FSYNC_WAIT) |
| xfs_trans_set_sync(tp); | xfs_trans_set_sync(tp); |
| error = _xfs_trans_commit(tp, 0, NULL, &log_flushed); | error = _xfs_trans_commit(tp, 0, &log_flushed); |
| xfs_iunlock(ip, XFS_ILOCK_EXCL); | xfs_iunlock(ip, XFS_ILOCK_EXCL); |
| } | } |
| Line 1291 xfs_inactive_free_eofblocks( | Line 1291 xfs_inactive_free_eofblocks( |
| XFS_TRANS_ABORT)); | XFS_TRANS_ABORT)); |
| } else { | } else { |
| error = xfs_trans_commit(tp, | error = xfs_trans_commit(tp, |
| XFS_TRANS_RELEASE_LOG_RES, | XFS_TRANS_RELEASE_LOG_RES); |
| NULL); | |
| } | } |
| xfs_iunlock(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); | xfs_iunlock(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); |
| } | } |
| Line 1406 xfs_inactive_symlink_rmt( | Line 1405 xfs_inactive_symlink_rmt( |
| * we need to unlock the inode since the new transaction doesn't | * we need to unlock the inode since the new transaction doesn't |
| * have the inode attached. | * have the inode attached. |
| */ | */ |
| error = xfs_trans_commit(tp, 0, NULL); | error = xfs_trans_commit(tp, 0); |
| tp = ntp; | tp = ntp; |
| if (error) { | if (error) { |
| ASSERT(XFS_FORCED_SHUTDOWN(mp)); | ASSERT(XFS_FORCED_SHUTDOWN(mp)); |
| Line 1503 xfs_inactive_attrs( | Line 1502 xfs_inactive_attrs( |
| tp = *tpp; | tp = *tpp; |
| mp = ip->i_mount; | mp = ip->i_mount; |
| ASSERT(ip->i_d.di_forkoff != 0); | ASSERT(ip->i_d.di_forkoff != 0); |
| xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| xfs_iunlock(ip, XFS_ILOCK_EXCL); | xfs_iunlock(ip, XFS_ILOCK_EXCL); |
| error = xfs_attr_inactive(ip); | error = xfs_attr_inactive(ip); |
| Line 1790 xfs_inactive( | Line 1789 xfs_inactive( |
| * nothing we can do except to try to keep going. | * nothing we can do except to try to keep going. |
| */ | */ |
| (void) xfs_bmap_finish(&tp, &free_list, &committed); | (void) xfs_bmap_finish(&tp, &free_list, &committed); |
| (void) xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | (void) xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| } | } |
| /* | /* |
| * Release the dquots held by inode, if any. | * Release the dquots held by inode, if any. |
| Line 2026 xfs_create( | Line 2025 xfs_create( |
| goto abort_rele; | goto abort_rele; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| if (error) { | if (error) { |
| IRELE(ip); | IRELE(ip); |
| tp = NULL; | tp = NULL; |
| Line 2511 xfs_remove( | Line 2510 xfs_remove( |
| goto error_rele; | goto error_rele; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| if (error) { | if (error) { |
| IRELE(ip); | IRELE(ip); |
| goto std_return; | goto std_return; |
| Line 2719 xfs_link( | Line 2718 xfs_link( |
| goto abort_return; | goto abort_return; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| if (error) | if (error) |
| goto std_return; | goto std_return; |
| Line 2936 xfs_mkdir( | Line 2935 xfs_mkdir( |
| goto error2; | goto error2; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| XFS_QM_DQRELE(mp, udqp); | XFS_QM_DQRELE(mp, udqp); |
| XFS_QM_DQRELE(mp, gdqp); | XFS_QM_DQRELE(mp, gdqp); |
| if (error) { | if (error) { |
| Line 3190 xfs_rmdir( | Line 3189 xfs_rmdir( |
| goto std_return; | goto std_return; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| if (error) { | if (error) { |
| IRELE(cdp); | IRELE(cdp); |
| goto std_return; | goto std_return; |
| Line 3535 xfs_symlink( | Line 3534 xfs_symlink( |
| if (error) { | if (error) { |
| goto error2; | goto error2; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| XFS_QM_DQRELE(mp, udqp); | XFS_QM_DQRELE(mp, udqp); |
| XFS_QM_DQRELE(mp, gdqp); | XFS_QM_DQRELE(mp, gdqp); |
| Line 3790 xfs_set_dmattrs ( | Line 3789 xfs_set_dmattrs ( |
| xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
| IHOLD(ip); | IHOLD(ip); |
| error = xfs_trans_commit(tp, 0, NULL); | error = xfs_trans_commit(tp, 0); |
| return error; | return error; |
| } | } |
| Line 4148 retry: | Line 4147 retry: |
| goto error0; | goto error0; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| xfs_iunlock(ip, XFS_ILOCK_EXCL); | xfs_iunlock(ip, XFS_ILOCK_EXCL); |
| if (error) { | if (error) { |
| break; | break; |
| Line 4455 xfs_free_file_space( | Line 4454 xfs_free_file_space( |
| goto error0; | goto error0; |
| } | } |
| error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL); | error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); |
| xfs_iunlock(ip, XFS_ILOCK_EXCL); | xfs_iunlock(ip, XFS_ILOCK_EXCL); |
| } | } |
| Line 4649 xfs_change_file_space( | Line 4648 xfs_change_file_space( |
| xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
| xfs_trans_set_sync(tp); | xfs_trans_set_sync(tp); |
| error = xfs_trans_commit(tp, 0, NULL); | error = xfs_trans_commit(tp, 0); |
| xfs_iunlock(ip, XFS_ILOCK_EXCL); | xfs_iunlock(ip, XFS_ILOCK_EXCL); |