xfs
[Top] [All Lists]

[PATCH v2 5/8] xfs: Get rid of all XFS_XXX_LOG_RES() macro

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: [PATCH v2 5/8] xfs: Get rid of all XFS_XXX_LOG_RES() macro
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Fri, 17 May 2013 13:38:32 +0800
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5
From: Jie Liu <jeff.liu@xxxxxxxxxx>

Get rid of all XFS_XXX_LOG_RES() macros since they are obsoleted now.

Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
 fs/xfs/xfs_trans.h |   44 --------------------------------------------
 1 file changed, 44 deletions(-)

diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h
index 8049f55..a1a1835 100644
--- a/fs/xfs/xfs_trans.h
+++ b/fs/xfs/xfs_trans.h
@@ -231,50 +231,6 @@ struct xfs_log_item_desc {
        (XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK) + \
         XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)
 
-
-#define        XFS_WRITE_LOG_RES(mp)   
((mp)->m_reservations.tr_write.tr_logres)
-#define        XFS_RENAME_LOG_RES(mp)  
((mp)->m_reservations.tr_rename.tr_logres)
-#define        XFS_LINK_LOG_RES(mp)    ((mp)->m_reservations.tr_link.tr_logres)
-#define        XFS_REMOVE_LOG_RES(mp)  
((mp)->m_reservations.tr_remove.tr_logres)
-#define        XFS_SYMLINK_LOG_RES(mp) 
((mp)->m_reservations.tr_symlink.tr_logres)
-#define        XFS_CREATE_LOG_RES(mp)  
((mp)->m_reservations.tr_create.tr_logres)
-#define        XFS_MKDIR_LOG_RES(mp)   
((mp)->m_reservations.tr_mkdir.tr_logres)
-#define        XFS_IFREE_LOG_RES(mp)   
((mp)->m_reservations.tr_ifree.tr_logres)
-#define        XFS_ICHANGE_LOG_RES(mp) 
((mp)->m_reservations.tr_ichange.tr_logres)
-#define        XFS_GROWDATA_LOG_RES(mp)  
((mp)->m_reservations.tr_growdata.tr_logres)
-#define        XFS_ITRUNCATE_LOG_RES(mp) 
((mp)->m_reservations.tr_itruncate.tr_logres)
-#define        XFS_GROWRTALLOC_LOG_RES(mp)     \
-       ((mp)->m_reservations.tr_growrtalloc.tr_logres)
-#define        XFS_GROWRTZERO_LOG_RES(mp)      \
-       ((mp)->m_reservations.tr_growrtzero.tr_logres)
-#define        XFS_GROWRTFREE_LOG_RES(mp)      \
-       ((mp)->m_reservations.tr_growrtfree.tr_logres)
-#define        XFS_SWRITE_LOG_RES(mp)  
((mp)->m_reservations.tr_swrite.tr_logres)
-/*
- * Logging the inode timestamps on an fsync -- same as SWRITE
- * as long as SWRITE logs the entire inode core
- */
-#define XFS_FSYNC_TS_LOG_RES(mp) ((mp)->m_reservations.tr_fsyncts.tr_logres)
-#define        XFS_WRITEID_LOG_RES(mp)  
((mp)->m_reservations.tr_writeid.tr_logres)
-#define        XFS_ADDAFORK_LOG_RES(mp) 
((mp)->m_reservations.tr_addafork.tr_logres)
-#define        XFS_ATTRSETM_LOG_RES(mp) 
((mp)->m_reservations.tr_attrsetm.tr_logres)
-#define        XFS_ATTRINVAL_LOG_RES(mp) 
((mp)->m_reservations.tr_attrinval.tr_logres)
-#define XFS_ATTRSETRT_LOG_RES(mp) ((mp)->m_reservations.tr_attrsetrt.tr_logres)
-#define        XFS_ATTRRM_LOG_RES(mp)    
((mp)->m_reservations.tr_attrrm.tr_logres)
-#define XFS_SB_LOG_RES(mp)       ((mp)->m_reservations.tr_sb.tr_logres)
-#define        XFS_CLEAR_AGI_BUCKET_LOG_RES(mp)\
-       ((mp)->m_reservations.tr_clearagi.tr_logres)
-#define XFS_QM_SBCHANGE_LOG_RES(mp)    \
-       ((mp)->m_reservations.tr_qm_sbchange.tr_logres)
-#define XFS_QM_SETQLIM_LOG_RES(mp)     \
-       ((mp)->m_reservations.tr_qm_setqlim.tr_logres)
-#define XFS_QM_DQALLOC_LOG_RES(mp)     \
-       ((mp)->m_reservations.tr_qm_dqalloc.tr_logres)
-#define XFS_QM_QUOTAOFF_LOG_RES(mp)    \
-       ((mp)->m_reservations.tr_qm_quotaoff.tr_logres)
-#define XFS_QM_QUOTAOFF_END_LOG_RES(mp)        \
-       ((mp)->m_reservations.tr_qm_equotaoff.tr_logres)
-
 /*
  * Various log count values.
  */
-- 
1.7.9.5

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH v2 5/8] xfs: Get rid of all XFS_XXX_LOG_RES() macro, Jeff Liu <=