diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
| -rw-r--r-- | fs/xfs/libxfs/xfs_format.h | 19 | 
1 files changed, 4 insertions, 15 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h index 9a88aba1589f..382ab1e71c0b 100644 --- a/fs/xfs/libxfs/xfs_format.h +++ b/fs/xfs/libxfs/xfs_format.h @@ -1008,7 +1008,7 @@ enum xfs_dinode_fmt {   * Return pointers to the data or attribute forks.   */  #define XFS_DFORK_DPTR(dip) \ -	((char *)dip + xfs_dinode_size(dip->di_version)) +	((void *)dip + xfs_dinode_size(dip->di_version))  #define XFS_DFORK_APTR(dip)	\  	(XFS_DFORK_DPTR(dip) + XFS_DFORK_BOFF(dip))  #define XFS_DFORK_PTR(dip,w)	\ @@ -1156,20 +1156,6 @@ 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   */ @@ -1272,6 +1258,9 @@ static inline time64_t xfs_dq_bigtime_to_unix(uint32_t ondisk_seconds)  #define XFS_DQ_GRACE_MIN		((int64_t)0)  #define XFS_DQ_GRACE_MAX		((int64_t)U32_MAX) +/* Maximum id value for a quota record */ +#define XFS_DQ_ID_MAX			(U32_MAX) +  /*   * This is the main portion of the on-disk representation of quota information   * for a user.  We pad this with some more expansion room to construct the on  |