xfs: cleanup shortform directory inode number handling
Refactor the shortform directory helpers that deal with the 32-bit vs 64-bit wide inode numbers into more sensible helpers, and kill the xfs_intino_t typedef that is now superflous. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@ -28,17 +28,6 @@
|
||||
|
||||
typedef __uint32_t xfs_agino_t; /* within allocation grp inode number */
|
||||
|
||||
/*
|
||||
* Useful inode bits for this kernel.
|
||||
* Used in some places where having 64-bits in the 32-bit kernels
|
||||
* costs too much.
|
||||
*/
|
||||
#if XFS_BIG_INUMS
|
||||
typedef xfs_ino_t xfs_intino_t;
|
||||
#else
|
||||
typedef __uint32_t xfs_intino_t;
|
||||
#endif
|
||||
|
||||
#define NULLFSINO ((xfs_ino_t)-1)
|
||||
#define NULLAGINO ((xfs_agino_t)-1)
|
||||
|
||||
|
Reference in New Issue
Block a user