From 247a195305f80b936c009869d47c428a0cf1694e Mon Sep 17 00:00:00 2001 From: Jeff Liu Date: Mon, 28 Jan 2013 21:26:34 +0800 Subject: [PATCH] --- yaml --- r: 352930 b: refs/heads/master c: f910a8c620e21fdb53384ad741ff9e4995cc6e67 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_qm.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index a9e27e703395..c5989fa2d151 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b0c10b983a3e5cc35f239999df1b8bad1ba5b8f6 +refs/heads/master: f910a8c620e21fdb53384ad741ff9e4995cc6e67 diff --git a/trunk/fs/xfs/xfs_qm.c b/trunk/fs/xfs/xfs_qm.c index 60eff4763156..e5b5cf973781 100644 --- a/trunk/fs/xfs/xfs_qm.c +++ b/trunk/fs/xfs/xfs_qm.c @@ -1584,10 +1584,9 @@ xfs_qm_write_sb_changes( int error; tp = xfs_trans_alloc(mp, XFS_TRANS_QM_SBCHANGE); - if ((error = xfs_trans_reserve(tp, 0, - mp->m_sb.sb_sectsize + 128, 0, - 0, - XFS_DEFAULT_LOG_COUNT))) { + error = xfs_trans_reserve(tp, 0, XFS_QM_SBCHANGE_LOG_RES(mp), + 0, 0, XFS_DEFAULT_LOG_COUNT); + if (error) { xfs_trans_cancel(tp, 0); return error; }