From patchwork Tue Jun 19 15:51:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139161 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5372497lji; Tue, 19 Jun 2018 08:51:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJHqI8B5/6JIbSSs7ImU2FubWY6ta/3KX8JH9luFJuNxzVr0yNLbr9/mhfR7ZcCk7CvREC7 X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr19425032pls.169.1529423489237; Tue, 19 Jun 2018 08:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529423489; cv=none; d=google.com; s=arc-20160816; b=Msr3GIyAhQ1To8TLqqiA/Gfu4cBADVwxvvoaeG+m2R0I0uFhw7txB3JzaHqf+LDwJ0 VXkMJksRju0tnyfHLZCxj5OKuAgrCoIWqmFYcLRC6szYxdoozljIuSttCFHse0I0YNRc 6AlnrlsjFHugihnWjzP/AaIzxFkSiVlTIBnYBDrHim+vKdyXB53tudHqf64mVq5Pk56H QohIs4Xdsy6jX81pVLJ02cCRO4qmi11+B0dbGKhd0OKlxfe9rlJMFNiDCSuh2vuZLGe/ xIC9M7qUgSOfjVmxcJOLusXve6/CO2+L84BhuufKDxkLwV8MHnFIBbC9FwABYMAnUv4B DaAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gPBhSocCClPF9dZt5L15Iq7Ue9igtAyId1mzdzyTvAQ=; b=mi8a1yNtUIqcw96Kz03UHVKvRJRLHQhoeuASyj5MgMywe7NVRXJWZ4PQ7LFjC2A+bm 7+BweSkOR8OPAjT5xxf+pLfwe8ITsnR6Lt5BGkby9QdeZ3ZsXlPXj3OjN5/q1l8vvOfd TjyRAzk1YzxZNsIxvwBSX++AgW8YNKTsnbyqMCZn7ivsXq9gUtJaic/2/BHrsJBoorEx OKu5EMSfle1nWXDW0RX3V4PMTnmRIPPinJM1FPm7WAHlRatQw2NTvvKURgnU0MXe9osW UFVsshTwiO551Q9G3zN1adFL7jQZKjXjidH8ueGtfPv6dzoJ706hGUZF6i/iFgbLx0su iQcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184-v6si3510pgt.540.2018.06.19.08.51.28; Tue, 19 Jun 2018 08:51:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966861AbeFSPvZ (ORCPT + 30 others); Tue, 19 Jun 2018 11:51:25 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:53049 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966555AbeFSPvY (ORCPT ); Tue, 19 Jun 2018 11:51:24 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MYeLS-1fj6Oj1pdy-00VROj; Tue, 19 Jun 2018 17:51:11 +0200 From: Arnd Bergmann To: Dave Kleikamp Cc: y2038@lists.linaro.org, Arnd Bergmann , jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] jfs: use time64_t for otime Date: Tue, 19 Jun 2018 17:51:02 +0200 Message-Id: <20180619155110.3950450-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:O6nfG/zPSAATmGKLLiNfuY3DOBplkWNX4ISrhaRKX9G0JpJjKqg 5L38YWeF7FGurjpRho3S8IPeHQW2edDZ03KHr21+cADo4KEOoTZ5qhG8YjX9DGaaJPvHQQz nLmAHZC7R2hQQQdm9AdO6yjopPWkwrQKGv/0jYjAe5amdElrJoHpxWqD6DpXwTPVt6j04Tg O7RDmsHnF6JNJV3+fVEQw== X-UI-Out-Filterresults: notjunk:1; V01:K0:z/2X8TFxDP0=:aSdzr2LT3ev+Uei7ObnkqA DmRTIA+fFI6/SF4FWRXWlmqWAdd6oChFtoi0t8pj7zQBOp2bvQSvJReK6LQwvwXP65VM5cmQh pEcNgnY+xkIPnrEGzi1nrFuBuQzVEfCWdHf64RuFlanh+FBksUBOHD1flxS2Ok++56CdDumAu jeP1kfGZIWEi6cTt+gPXGT9zTir4lTQu2NQOJLyJIqc+G50oNkLZdniaOrsYOuq0Db5czWFJ/ 8K1Bxi1cqmxy0pmRcqrwmG9WVZfFea54edDbljJrjFG9o7ByOdyzsHLFQFSkVZcLfThGcKfM7 hF7uJZC5Jv3j5LBcZx7OG9iaRQ2JEwDAbxDn2k37bwzwuOVtECy7GeAA9md01hiF1qDG7R+99 pdN2ufaN6rHgXRJ9NNm6FhbhGPzsAXnWlOSzWhynhDqTf87rJoWrUe8ttna/blBVZIOCVs+HX x/3YID23J0RI8AQ4fGed32Q03p/SJKo2xXfOwEXeTxRFkOA3qDr5xJV04g8PCTExLoGcEEzDC vIiKWfYSoOPLrSF6Uj5DvHTjRn3xR10Tvqev5u57Gr/SkBM4fTTRNiV8h+BLSRvFPdzOy8BIS Crzlm6orM10HGtnwcO4rG25yKy/eWrKEpyIbqh/J6YHF/JIKTcxWnPTPLm3TkZcH4xSF3s69U VtEX2rT1SItXlEvDrJd+6S77dyejO+agTDZnCIoR4StvfVnc74TF+gBicMfaIBYJKIao= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The file creation time in the inode uses time_t which is defined differently on 32-bit and 64-bit architectures and deprecated. The representation in the inode uses an unsigned 32-bit number, but this gets wrapped around after year 2038 when assigned to a time_t. This changes the type to time64_t, so we can support the full range of timestamps between 1970 and 2106 on 32-bit systems like we do on 64-bit systems already, and matching what we do for the atime/ctime/mtime stamps since the introduction of 64-bit timestamps in VFS. Note: the otime stamp is not actually used anywhere at the moment in the kernel, it is just set when writing a file, so none of this really makes a difference unless we implement setting the btime field in the getattr() callback. Signed-off-by: Arnd Bergmann --- fs/jfs/jfs_incore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/fs/jfs/jfs_incore.h b/fs/jfs/jfs_incore.h index 1f26d1910409..d5c46f86b2ef 100644 --- a/fs/jfs/jfs_incore.h +++ b/fs/jfs/jfs_incore.h @@ -43,7 +43,7 @@ struct jfs_inode_info { pxd_t ixpxd; /* inode extent descriptor */ dxd_t acl; /* dxd describing acl */ dxd_t ea; /* dxd describing ea */ - time_t otime; /* time created */ + time64_t otime; /* time created */ uint next_index; /* next available directory entry index */ int acltype; /* Type of ACL */ short btorder; /* access order */