Commit 26d93369 authored by Nathan Scott's avatar Nathan Scott

[XFS] Fixup a couple of incorrect xfs_trans_commit calls (bad

flags/casts).

SGI Modid: xfs-linux:xfs-kern:171452a
parent f32f7336
......@@ -922,7 +922,7 @@ xfs_write(
xfs_trans_ihold(tp, xip);
xfs_trans_log_inode(tp, xip, XFS_ILOG_CORE);
xfs_trans_set_sync(tp);
error = xfs_trans_commit(tp, 0, (xfs_lsn_t)0);
error = xfs_trans_commit(tp, 0, NULL);
xfs_iunlock(xip, XFS_ILOCK_EXCL);
}
}
......
......@@ -576,7 +576,8 @@ xfs_fs_log_dummy(xfs_mount_t *mp)
xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL);
xfs_trans_ihold(tp, ip);
xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
xfs_trans_commit(tp, XFS_TRANS_SYNC, NULL);
xfs_trans_set_sync(tp);
xfs_trans_commit(tp, 0, NULL);
xfs_iunlock(ip, XFS_ILOCK_EXCL);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment