fs/ufs: use ktime_get_real_seconds for sb and cg timestamps
[sfrench/cifs-2.6.git] / fs / ufs / super.c
index 488088141451ba6c9dab80dd0c96a1502100b3f7..a4e07e910f1b4c7d679645c2d3941c8e19f75ee4 100644 (file)
@@ -698,7 +698,7 @@ static int ufs_sync_fs(struct super_block *sb, int wait)
        usb1 = ubh_get_usb_first(uspi);
        usb3 = ubh_get_usb_third(uspi);
 
-       usb1->fs_time = cpu_to_fs32(sb, get_seconds());
+       usb1->fs_time = ufs_get_seconds(sb);
        if ((flags & UFS_ST_MASK) == UFS_ST_SUN  ||
            (flags & UFS_ST_MASK) == UFS_ST_SUNOS ||
            (flags & UFS_ST_MASK) == UFS_ST_SUNx86)
@@ -1342,7 +1342,7 @@ static int ufs_remount (struct super_block *sb, int *mount_flags, char *data)
         */
        if (*mount_flags & SB_RDONLY) {
                ufs_put_super_internal(sb);
-               usb1->fs_time = cpu_to_fs32(sb, get_seconds());
+               usb1->fs_time = ufs_get_seconds(sb);
                if ((flags & UFS_ST_MASK) == UFS_ST_SUN
                  || (flags & UFS_ST_MASK) == UFS_ST_SUNOS
                  || (flags & UFS_ST_MASK) == UFS_ST_SUNx86)