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:
@@ -121,11 +121,13 @@ xfs_log_dinode_to_disk_ts(
|
||||
const xfs_ictimestamp_t its)
|
||||
{
|
||||
struct xfs_legacy_timestamp *lts;
|
||||
struct xfs_legacy_ictimestamp *lits;
|
||||
xfs_timestamp_t ts;
|
||||
|
||||
lts = (struct xfs_legacy_timestamp *)&ts;
|
||||
lts->t_sec = cpu_to_be32(its.t_sec);
|
||||
lts->t_nsec = cpu_to_be32(its.t_nsec);
|
||||
lits = (struct xfs_legacy_ictimestamp *)&its;
|
||||
lts->t_sec = cpu_to_be32(lits->t_sec);
|
||||
lts->t_nsec = cpu_to_be32(lits->t_nsec);
|
||||
|
||||
return ts;
|
||||
}
|
||||
|
Reference in New Issue
Block a user