From: Dave Chinner Date: Wed, 4 Sep 2013 22:05:47 +0000 (+0000) Subject: xfs: Make writeid transaction use tr_writeid X-Git-Tag: v3.2.0-alpha1~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eadf635c75b9714022274850bf56fd97a98a2713;p=thirdparty%2Fxfsprogs-dev.git xfs: Make writeid transaction use tr_writeid tr_writeid is defined at mp->m_resv structure, however, it does not really being used when it should be.. This patch changes it to tr_writeid to fetch the correct log reservation size. Signed-off-by: Jie Liu Signed-off-by: Dave Chinner Reviewed-by: Mark Tinguely Signed-off-by: Rich Johnston --- diff --git a/include/xfs_trans_resv.h b/include/xfs_trans_resv.h index 326f17d70..b8d566699 100644 --- a/include/xfs_trans_resv.h +++ b/include/xfs_trans_resv.h @@ -111,7 +111,7 @@ struct xfs_trans_resv { * as long as SWRITE logs the entire inode core */ #define XFS_FSYNC_TS_LOG_RES(mp) ((mp)->m_resv.tr_fsyncts.tr_logres) -#define XFS_WRITEID_LOG_RES(mp) ((mp)->m_resv.tr_swrite.tr_logres) +#define XFS_WRITEID_LOG_RES(mp) ((mp)->m_resv.tr_writeid.tr_logres) #define XFS_ADDAFORK_LOG_RES(mp) ((mp)->m_resv.tr_addafork.tr_logres) #define XFS_ATTRSETM_LOG_RES(mp) ((mp)->m_resv.tr_attrsetm.tr_logres) #define XFS_ATTRINVAL_LOG_RES(mp) ((mp)->m_resv.tr_attrinval.tr_logres)