Commit 5166ab06558cfe4a3745252a91ad6b495ba49290
Committed by
Ben Myers
1 parent
e457274b60
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
xfs: make use of XFS_SB_LOG_RES() at xfs_mount_log_sb()
Make use of XFS_SB_LOG_RES() at xfs_mount_log_sb(). Signed-off-by: Jie Liu <jeff.liu@oracle.com> CC: Dave Chinner <david@fromorbit.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
fs/xfs/xfs_mount.c
... | ... | @@ -1945,8 +1945,8 @@ |
1945 | 1945 | XFS_SB_VERSIONNUM)); |
1946 | 1946 | |
1947 | 1947 | tp = xfs_trans_alloc(mp, XFS_TRANS_SB_UNIT); |
1948 | - error = xfs_trans_reserve(tp, 0, mp->m_sb.sb_sectsize + 128, 0, 0, | |
1949 | - XFS_DEFAULT_LOG_COUNT); | |
1948 | + error = xfs_trans_reserve(tp, 0, XFS_SB_LOG_RES(mp), 0, 0, | |
1949 | + XFS_DEFAULT_LOG_COUNT); | |
1950 | 1950 | if (error) { |
1951 | 1951 | xfs_trans_cancel(tp, 0); |
1952 | 1952 | return error; |