Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5341434imm; Tue, 19 Jun 2018 08:53:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ5sjPtxzMJSPX4RVjUcHeE6ywQhhoHPmuJMzQO+6H5y9y7kIjHp2iir3VLZONngN1TlB9j X-Received: by 2002:a62:4715:: with SMTP id u21-v6mr18743872pfa.89.1529423635687; Tue, 19 Jun 2018 08:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529423635; cv=none; d=google.com; s=arc-20160816; b=t+QH/ZIIbw/TYaJ+RPinZzo1ZQQE+A8swnJzcmoMAxFfUH6RH9NP4pxr206EQt9tvG a/JsdpBtXbZPxZPfF0fj0zGhZ+G3m1P2DClmDlhK8gej4FN7byK80qi/gkfeZ0t/dO6O zJX4ZT9dzszxREG9AT6lGVH3rWOYdVSSSRq7H7ybxfRRHhXZ5aBQrsQLDIX6YSNvFtSZ or83SjWHwvqra63SDrkOEDO0jcmzPXZxQs+D+SbJn+UuQQL7/h3ubcNZbMotgYTK5UFX wxUcslNIY/77FsemdiGmyWSd0SOi5JGj7C/u7BERRaRZrLBWVsfuMcYopcy0MUTYxgzg G4ag== 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 g190-v6si11716pfc.115.2018.06.19.08.53.42; Tue, 19 Jun 2018 08:53:55 -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 S966821AbeFSPvZ (ORCPT + 99 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(-) 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 */ -- 2.9.0