xfs
[Top] [All Lists]

[PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET

To: Alex Elder <aelder@xxxxxxx>, Ben Myers <bpm@xxxxxxx>, xfs masters <xfs-masters@xxxxxxxxxxx>, xfs <xfs@xxxxxxxxxxx>, linux kernel <linux-kernel@xxxxxxxxxxxxxxx>
Subject: [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET
From: Amit Sahrawat <amit.sahrawat83@xxxxxxxxx>
Date: Fri, 6 Jan 2012 16:42:18 +0530
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Amit Sahrawat <amit.sahrawat83@xxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=GywCwCj6YYcR2HApTLFviG8mhmMuy2Xofs0uX8PLKlc=; b=ozoPrQN6Z26P90HiZOKKYKF57L+bxYG1jWV73xbD5Q8SWfrJbFx7eajZKb0eiIj28G qVukN8rfCrDhcdaXJzG5J0/DjMm6SKoWqnRILTX+k5vBYMCLyNhXZQyyFmP1zzxILn8Z wl1pEW89yC1E3YbJKM9DTV9iYKspWIZazCAYU=
Removing the macro, as this is no more needed in the code. 
Tried to find the reference when it was last used - but the usage 
for this seemed to have been dropped long time ago.

Signed-off-by: Amit Sahrawat <amit.sahrawat83@xxxxxxxxx>
---
 fs/xfs/xfs_sb.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
index cb6ae71..f429d9d 100644
--- a/fs/xfs/xfs_sb.h
+++ b/fs/xfs/xfs_sb.h
@@ -529,7 +529,6 @@ static inline int xfs_sb_version_hasprojid32bit(xfs_sb_t 
*sbp)
 #define        XFS_BB_TO_FSB(mp,bb)    \
        (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
 #define        XFS_BB_TO_FSBT(mp,bb)   ((bb) >> (mp)->m_blkbb_log)
-#define        XFS_BB_FSB_OFFSET(mp,bb) ((bb) & ((mp)->m_bsize - 1))
 
 /*
  * File system block to byte conversions.
-- 
1.7.2.3

<Prev in Thread] Current Thread [Next in Thread>