xfs: remove rt-wrappers from xfs_format.h
xfs_format.h has a bunch odd wrappers for helper functions and mount structure access using RT* prefixes. Replace them with their open coded versions (for those that weren't entirely unused) and remove the wrappers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
committed by
Chandan Babu R
parent
8ceee72fdb
commit
3abfe6c275
@ -1156,20 +1156,12 @@ static inline bool xfs_dinode_has_large_extent_counts(
|
||||
#define XFS_DFL_RTEXTSIZE (64 * 1024) /* 64kB */
|
||||
#define XFS_MIN_RTEXTSIZE (4 * 1024) /* 4kB */
|
||||
|
||||
#define XFS_BLOCKSIZE(mp) ((mp)->m_sb.sb_blocksize)
|
||||
#define XFS_BLOCKMASK(mp) ((mp)->m_blockmask)
|
||||
|
||||
/*
|
||||
* RT bit manipulation macros.
|
||||
*/
|
||||
#define XFS_RTMIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
#define XFS_RTMAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
#define XFS_RTLOBIT(w) xfs_lowbit32(w)
|
||||
#define XFS_RTHIBIT(w) xfs_highbit32(w)
|
||||
|
||||
#define XFS_RTBLOCKLOG(b) xfs_highbit64(b)
|
||||
|
||||
/*
|
||||
* Dquot and dquot block format definitions
|
||||
*/
|
||||
|
Reference in New Issue
Block a user