diff mbox series

[2/2] xfs: remove unused macros

Message ID 20240724024257.168917-1-sunjunchao2870@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/2] xfs: remove duplicated include header | expand

Commit Message

Julian Sun July 24, 2024, 2:42 a.m. UTC
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.

Signed-off-by: Julian Sun <sunjunchao2870@gmail.com>
---
 fs/xfs/libxfs/xfs_format.h | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
index e1bfee0c3b1a..86cdb0e13113 100644
--- a/fs/xfs/libxfs/xfs_format.h
+++ b/fs/xfs/libxfs/xfs_format.h
@@ -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