Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp909477imm; Fri, 22 Jun 2018 07:20:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL0Rv2doXEihjnUKZj11rxv+YSWYQMonnddUoJ9/GG7Z7JXqDMienuL5t1LA+gwwF2q5yGr X-Received: by 2002:a17:902:850b:: with SMTP id bj11-v6mr1906773plb.210.1529677256926; Fri, 22 Jun 2018 07:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529677256; cv=none; d=google.com; s=arc-20160816; b=zWN7OjkDsGvcB8XFFsAsLDq56xaOsNyd+Eh/f2OF1XWZtG59sHpmjFhrbZ4YnyvTZ2 BwGXvV1C9bStyrWoapPhHyIt4bgX/wbfsTKPMOdlIG54/PA6N1kEVGn4o27TUBLr61vY ROcuax6ueuUKmSPKT+EHZH3WGW6XXDiRhYDhh8TnD19ulDTQU/bc19pMwISEBKfFiLIH Vgh8wfiH4iRonUm0AzHhFsRCTdpvbEpzGTnGfrSp5HjnvDEDDQZZJfzV29q3pNHtjMOO MJe85fFF6lmemufwhQtk66kS5IjWozUSMH5IczUToMAnOw+qkF/VDFcpsxLI+72MkfsG T9+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fayUXbLSROJfndb7c6G80mP57u3NdazVH22qYr+aVkE=; b=mWrWUggutMKSdY38ggsB43sLPJYHXZTmzKMeFoFosatj0x0TpL1KwixdzAs93rh+2f MgzpvRcPh34nDpm3vwmsoDVYCD5CoDsCjKLBvujWUOULqPmsuKzuCd4c1ZYtfJgHcUyq Yfv9yGC5JgI+DYytL/6PKBozMvJctk3phaTe83bcP0XdS9C3f5zueFgDxlzre3xp9H9a yWOiEKbecgI4PNSvw1bCu5xv65xvbpJJhbJwtL7sTaqwESyG+frBQfxgZQcRM3Ldw2iJ MOs5mm35yjkEvnenFiUpiZxzVid6GvhxBRsmyeiplXfpKJ+5w2P09CBWbw2oSfYxNTrj 5BtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BfW2Pv0D; 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 d2-v6si5917683pgv.562.2018.06.22.07.20.42; Fri, 22 Jun 2018 07:20:56 -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=fail header.i=@gmail.com header.s=20161025 header.b=BfW2Pv0D; 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 S933310AbeFVOTk (ORCPT + 99 others); Fri, 22 Jun 2018 10:19:40 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33847 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933196AbeFVOTi (ORCPT ); Fri, 22 Jun 2018 10:19:38 -0400 Received: by mail-lf0-f67.google.com with SMTP id e13-v6so9073997lfc.1; Fri, 22 Jun 2018 07:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fayUXbLSROJfndb7c6G80mP57u3NdazVH22qYr+aVkE=; b=BfW2Pv0DDkwrkxtccP9RL6s+K50TjE/cElAYn2A6IWqPx4EEyL7DEw7hKhQ9sP+yUz 9lnGXybz9ODKiNajjvrBxTcu5rYHQQylKDku/qmKD1E7tEJ6lDuO5rN/5y/zZsRJ0FCb PqZfstBNZ8kkhf7HaMW5xkdZaYNv50+X636BBNaVy1XE1WHSAyyhfLyJ6Fmmvt1asbEL +fRkm7tJ/gJrlGiOb6wttcphRVqrHxVkGwLUCZY3RWa5S5dP8hGIPDIg4XWLlZYXeKFa 0F2RuN/CRAkpFIqcXhrD4V+x7WzZ8wOVGFktiboYzgSECI+YNNu61K23NeJXaD1edGf4 JAXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fayUXbLSROJfndb7c6G80mP57u3NdazVH22qYr+aVkE=; b=MbqcE662sNQKA7WY0LLjTZyROfslA/8Udzbr5P5He+iWnUStk2YZtNR53kWdcuY4d2 BuK9Kqa+randIK9HzGBet1r5vY09icWlbOHGQfxhCGQgW3qcbR+g75Ni+62jxqhQUqKA CYjFJaVFWTr51I5IMuZCvbSZH4uz1CD+xKKqZ7rLkAHuTImgqBLeeD9TXTYJBnux++XG GKCq6AsL+LgFAzO9t8XIlt8AdnPx9bwc6t6AP2WSAVl1FbP1STF0XTJmg5VxadcFmIx2 WGLCpD1JEkgG39P9ymh3+2OYEQ+z/CDkEzsk3NvCcRPCgUwTW9bIKD9DnXyyu8Xedxo8 SuaQ== X-Gm-Message-State: APt69E1NXc284fQ93q3pfc92EQwX5uLBDjqLzEayhY2uvvKfqd0wDMw0 Wc3pRWCGly4W89JYkGHmgTyVmucprsAogZ34MIk= X-Received: by 2002:a2e:804c:: with SMTP id p12-v6mr1368211ljg.22.1529677176608; Fri, 22 Jun 2018 07:19:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Fri, 22 Jun 2018 07:19:35 -0700 (PDT) In-Reply-To: References: <20180619160223.4108556-1-arnd@arndb.de> <1529427809.2624.16.camel@dubeyko.com> <1529513708.5833.29.camel@dubeyko.com> From: Arnd Bergmann Date: Fri, 22 Jun 2018 16:19:35 +0200 X-Google-Sender-Auth: 7i2Er5ZW24xVAA_jFgO8-KGXIv4 Message-ID: Subject: Re: [PATCH 1/3] hfs: stop using timespec based interfaces To: Viacheslav Dubeyko Cc: Al Viro , Andrew Morton , y2038 Mailman List , Jeff Layton , Jan Kara , Deepa Dinamani , Linux FS-devel Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 9:55 PM, Arnd Bergmann wrote: > On Wed, Jun 20, 2018 at 6:55 PM, Viacheslav Dubeyko wrote: >> On Tue, 2018-06-19 at 21:42 +0200, Arnd Bergmann wrote: >>> On Tue, Jun 19, 2018 at 7:03 PM, Viacheslav Dubeyko wrote: >>> /* time macros: convert between 1904-2040 and 1970-2106 range, >>> * pre-1970 timestamps are interpreted as post-2038 times after >>> wrap-around */ >>> -#define __hfsp_mt2ut(t) (be32_to_cpu(t) - >>> 2082844800U) >>> +#define __hfsp_mt2ut(t) ((time64_t)be32_to_cpu(t) - >>> 2082844800U) >>> #define __hfsp_ut2mt(t) (cpu_to_be32(t + >>> 2082844800U)) >>> >>> /* compatibility */ >>> >>> I can submit that separately so that it can get backported into >>> stable kernels if you like, with the type changes as a follow-up >>> on top. >>> >> >> Sounds good. > > Ok, I'll send an updated version with that patch first then. I've now sent that patch with additional information that I got from reading the XNU sources. Interestingly, that also uses the 1970-2106 time range that I had in my original series, not the 1904-2040 time range that is documented. Arnd