xfs: redefine xfs_ictimestamp_t
Redefine xfs_ictimestamp_t as a uint64_t typedef in preparation for the bigtime functionality. Preserve the legacy structure format so that we can let the compiler take care of the masking and shifting. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Gao Xiang <hsiangkao@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@@ -368,10 +368,13 @@ static inline int xfs_ilog_fdata(int w)
|
||||
* directly mirrors the xfs_dinode structure as it must contain all the same
|
||||
* information.
|
||||
*/
|
||||
typedef struct xfs_ictimestamp {
|
||||
typedef uint64_t xfs_ictimestamp_t;
|
||||
|
||||
/* Legacy timestamp encoding format. */
|
||||
struct xfs_legacy_ictimestamp {
|
||||
int32_t t_sec; /* timestamp seconds */
|
||||
int32_t t_nsec; /* timestamp nanoseconds */
|
||||
} xfs_ictimestamp_t;
|
||||
};
|
||||
|
||||
/*
|
||||
* Define the format of the inode core that is logged. This structure must be
|
||||
|
Reference in New Issue
Block a user