Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5544378imm; Tue, 19 Jun 2018 12:08:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZZCPnBaoo/XpxHup+Qc+FQGIH5ogRd11bErSIE4NVZTmJzyaqr30mbsPLMDgQ9tQv5C5H X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr20197504pld.118.1529435304701; Tue, 19 Jun 2018 12:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529435304; cv=none; d=google.com; s=arc-20160816; b=ziOVwc6ef9LLEp5lKPQ+IvM4yMV+NEMJNwKP+e18dBPaScfSDV4qONBU1wH5CyjP64 6N54v/8JiClO/GbWhUkVlBlsS97+3EgiUFEv40zuXhsg7nfdaQFQnaOZcxJqGdb71I5B oLMzjSfH0RWf/19tTTnew2I1gWwp9+4sjGUerJLPoA/7H6H/9fAZCLljMjEODiomx5M2 LNHWhpGxGqhYjIoteWLTb7yR0pejAO/+3g01CGwQXOpzW7JRH+9fA1l8KLfiL1G/J5ej +KXHm1++hX3iwQ9TiB7GVDlxsTOfrHssavJofsXUOhPHhjnvrtFmxGzcXl0PbThCif8j Q1Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=u+Mk1XpLcR7MAZvCS/UqqitgJUrgq38AEz/QxTgMceA=; b=VokmLmX9MuOeJOpfomF2OW+YrtBZk/JA2B826/42ULtNW8eLNKuuVWTFB8qUAi6CmB zBZSGtSqqzUW703aGOui2bjOqJSbjhjIzeKEh+/VHnbObdgCERadhZe3buYmzy4pA4dj wUeinWMbw8yEvlB2PaAEu93L2kLwiae2HPpoJZ5QswprNTGihMzY4AD800OMYopvs4Gv 7O7mm/TJdEfQs5f2CLXtB3OWy/EgeAJPThZyxbHJcp6UNI8iBCYFYFLxXa5YUB3buStM Sw7q5lMocHsDLWckuns+kjleEI7Ms3COBVxp8UZtyq8DYXuOnBMX7zlZVZ7bjy6OliK0 WUcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=tAamnR+y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i197-v6si341438pgc.161.2018.06.19.12.08.02; Tue, 19 Jun 2018 12:08:24 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=tAamnR+y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030570AbeFSTHF (ORCPT + 99 others); Tue, 19 Jun 2018 15:07:05 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49526 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030474AbeFSTHD (ORCPT ); Tue, 19 Jun 2018 15:07:03 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5JJ3W8p144955; Tue, 19 Jun 2018 19:06:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=u+Mk1XpLcR7MAZvCS/UqqitgJUrgq38AEz/QxTgMceA=; b=tAamnR+yMn5n0iFy+JAz0QH6qQQSTnr0vVqiOhUPePI2aICO/4X8hqpmq0A9097o0eYG tpx2TaPKRiMfV1h8ah6i0EuVfUVHbs9KBycz0xLG+DzNPAtSdVmPY/nMktLLvbT0DFrT tkQswssDxicFalFAajS9ovNIPsEmoCYaucCmwp4FB3PjIzNrzWkwdLGuHA9kqMrOFUqa Xe8gWv71YuTOPx7OaWXgFoVfph0WCszuzaEv7/rlAeTQL+of+7nFVDieAxKMHYkqW1sa kFIyATUxBuuanVDjUKiX0pqfQukrocCstmjpgb3+xft4u6b308sD+XLL7djyWFThfHJW Gg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2jmu6xsfur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jun 2018 19:06:49 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5JJ6m2f029382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jun 2018 19:06:48 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5JJ6mjv023981; Tue, 19 Jun 2018 19:06:48 GMT Received: from [192.168.1.93] (/99.156.91.244) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 19 Jun 2018 12:06:48 -0700 Subject: Re: [PATCH] jfs: use time64_t for otime To: Arnd Bergmann Cc: y2038@lists.linaro.org, jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20180619155110.3950450-1-arnd@arndb.de> From: Dave Kleikamp Openpgp: preference=signencrypt Message-ID: Date: Tue, 19 Jun 2018 14:06:47 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180619155110.3950450-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8929 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=744 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806190208 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/19/2018 10:51 AM, Arnd Bergmann wrote: > 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. This looks good to me. I'll push it to linux-next and target the next merge window. Thanks, Shaggy > > 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 */ >