Skip to contentSkip to conversation

xfs: remove the unused XFS_B_FSB_OFFSET macro

PATCH In review [email protected] 4 participants 5 messages Oct 20, 2020 – Nov 13, 2020 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: remove the unused XFS_B_FSB_OFFSET macro

From: Kaixu Xia <[email protected]>

There are no callers of the XFS_B_FSB_OFFSET macro, so remove it.

---
 fs/xfs/libxfs/xfs_format.h | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/libxfs/xfs_format.h +0 -1
index dd764da08f6f..40b6fa3b4e01 100644
@@ -625,7 +625,6 @@ xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino)
 #define XFS_B_TO_FSB(mp,b)	\
 	((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog)
 #define XFS_B_TO_FSBT(mp,b)	(((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog)
-#define XFS_B_FSB_OFFSET(mp,b)	((b) & (mp)->m_blockmask)
 
 /*
  * Allocation group header
Signature · 1 line
2.20.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · On Tue, Oct 20, 2020 at 12:54:26PM +0800, [email protected] wrote:

From: Kaixu Xia <[email protected]>

There are no callers of the XFS_B_FSB_OFFSET macro, so remove it.

---
 fs/xfs/libxfs/xfs_format.h | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/libxfs/xfs_format.h +0 -0
index dd764da08f6f..40b6fa3b4e01 100644

fs/xfs/libxfs/xfs_format.h xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino) · line 628

Quoted 4 lines
fs/xfs/libxfs/xfs_format.h +0 -1
@@ -625,7 +625,6 @@ xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino)
 #define XFS_B_TO_FSB(mp,b)	\
 	((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog)
 #define XFS_B_TO_FSBT(mp,b)	(((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog)
-#define XFS_B_FSB_OFFSET(mp,b)	((b) & (mp)->m_blockmask)

Looks fine.

Signature · 2 lines
Dave Chinner
[email protected]
author
#3 lore raw
Quoted 10 lines · Christoph Hellwig
Quoted 3 lines · On Tue, Oct 20, 2020 at 12:54:26PM +0800, [email protected] wrote:

From: Kaixu Xia <[email protected]>

There are no callers of the XFS_B_FSB_OFFSET macro, so remove it.

No callers in xfsprogs either.

Looks good:

Hi Darrick,

There are some patches that have been reviewed but not been merged into xfs for-next branch, I will reply to them.
Sorry for the noise:)

Thanks,
Kaixu

Quoted 1 line
Signature · 1 line
kaixuxia
#4 lore raw
Quoted 12 lines · kaixuxia
Quoted 9 lines · Christoph Hellwig
Quoted 3 lines · On Tue, Oct 20, 2020 at 12:54:26PM +0800, [email protected] wrote:

From: Kaixu Xia <[email protected]>

There are no callers of the XFS_B_FSB_OFFSET macro, so remove it.

No callers in xfsprogs either.

Looks good:

Quoted 7 lines
Quoted 1 line

Hi Darrick,

There are some patches that have been reviewed but not been merged into xfs for-next branch, I will reply to them.
Sorry for the noise:)

Yes. AFAICT none of them are critical 5.10 bugfixes so they're all waiting for 5.11.

--D

Quoted 6 lines

Thanks,
Kaixu

Quoted 1 line
Signature · 1 line
kaixuxia