Skip to contentSkip to conversation

xfs: remove unused macros

PATCH In review Julian Sun 1 participant 1 message Jul 24, 2024 XFS filesystem

lore
Share & tools
lore

Julian Sun

author
#0 lore raw

PATCH 2/2 xfs: remove unused macros

Macros XFS_RMAP_IS_ATTR_FORK and XFS_RMAP_IS_UNWRITTEN were currently no longer used, so remove them.

This patch has only passed compilation test, but it should be fine.

---
 fs/xfs/libxfs/xfs_format.h | 2 --
 1 file changed, 2 deletions(-)
fs/xfs/libxfs/xfs_format.h +0 -2
index e1bfee0c3b1a..86cdb0e13113 100644
@@ -1551,8 +1551,6 @@ struct xfs_rmap_rec {
 #define XFS_RMAP_OFF(off)		((off) & XFS_RMAP_OFF_MASK)
 
 #define XFS_RMAP_IS_BMBT_BLOCK(off)	(!!((off) & XFS_RMAP_OFF_BMBT_BLOCK))
-#define XFS_RMAP_IS_ATTR_FORK(off)	(!!((off) & XFS_RMAP_OFF_ATTR_FORK))
-#define XFS_RMAP_IS_UNWRITTEN(len)	(!!((off) & XFS_RMAP_OFF_UNWRITTEN))
 
 #define RMAPBT_STARTBLOCK_BITLEN	32
 #define RMAPBT_BLOCKCOUNT_BITLEN	32
Signature · 1 line
2.39.2