xfs: rename struct xfs_legacy_ictimestamp
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Apr 2021 20:48:27 +0000 (13:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 23 Apr 2021 01:29:25 +0000 (18:29 -0700)
Rename struct xfs_legacy_ictimestamp to struct xfs_log_legacy_timestamp
as it is a type used for logging timestamps with no relationship to the
in-core inode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_inode_item_recover.c
fs/xfs/xfs_ondisk.h

index 5900772d678a90893045a69fe8888824c3ef0641..3e15ea29fb8de6c29c5a1a723b88209270d548de 100644 (file)
@@ -371,7 +371,7 @@ static inline int xfs_ilog_fdata(int w)
 typedef uint64_t xfs_log_timestamp_t;
 
 /* Legacy timestamp encoding format. */
-struct xfs_legacy_ictimestamp {
+struct xfs_log_legacy_timestamp {
        int32_t         t_sec;          /* timestamp seconds */
        int32_t         t_nsec;         /* timestamp nanoseconds */
 };
index 6cc4ca15209ce56c87800a8b322841a7996249ff..6764d12342da3e0b6ee8570afdd2d9399107b405 100644 (file)
@@ -304,13 +304,13 @@ xfs_inode_to_log_dinode_ts(
        struct xfs_inode                *ip,
        const struct timespec64         tv)
 {
-       struct xfs_legacy_ictimestamp   *lits;
+       struct xfs_log_legacy_timestamp *lits;
        xfs_log_timestamp_t             its;
 
        if (xfs_inode_has_bigtime(ip))
                return xfs_inode_encode_bigtime(tv);
 
-       lits = (struct xfs_legacy_ictimestamp *)&its;
+       lits = (struct xfs_log_legacy_timestamp *)&its;
        lits->t_sec = tv.tv_sec;
        lits->t_nsec = tv.tv_nsec;
 
index 9b877de2ce5e3da8e407fabad9a445e41c071ac5..7b79518b6c20b85823a8ea9ae1d6cf0af0b514ed 100644 (file)
@@ -128,14 +128,14 @@ xfs_log_dinode_to_disk_ts(
        const xfs_log_timestamp_t       its)
 {
        struct xfs_legacy_timestamp     *lts;
-       struct xfs_legacy_ictimestamp   *lits;
+       struct xfs_log_legacy_timestamp *lits;
        xfs_timestamp_t                 ts;
 
        if (xfs_log_dinode_has_bigtime(from))
                return cpu_to_be64(its);
 
        lts = (struct xfs_legacy_timestamp *)&ts;
-       lits = (struct xfs_legacy_ictimestamp *)&its;
+       lits = (struct xfs_log_legacy_timestamp *)&its;
        lts->t_sec = cpu_to_be32(lits->t_sec);
        lts->t_nsec = cpu_to_be32(lits->t_nsec);
 
index 66b541b7bb643df650222ef42aad67c2aa64d5cb..25991923c1a8aa837ccf45c90922f486a0520726 100644 (file)
@@ -127,7 +127,7 @@ xfs_check_ondisk_structs(void)
        XFS_CHECK_STRUCT_SIZE(struct xfs_log_dinode,            176);
        XFS_CHECK_STRUCT_SIZE(struct xfs_icreate_log,           28);
        XFS_CHECK_STRUCT_SIZE(xfs_log_timestamp_t,              8);
-       XFS_CHECK_STRUCT_SIZE(struct xfs_legacy_ictimestamp,    8);
+       XFS_CHECK_STRUCT_SIZE(struct xfs_log_legacy_timestamp,  8);
        XFS_CHECK_STRUCT_SIZE(struct xfs_inode_log_format_32,   52);
        XFS_CHECK_STRUCT_SIZE(struct xfs_inode_log_format,      56);
        XFS_CHECK_STRUCT_SIZE(struct xfs_qoff_logformat,        20);