Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp865449imm; Fri, 13 Jul 2018 07:37:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcatu4lGxz/hSicmx9SIMerScwwc5dIFcVdG2rC3vYRfuye4qqOCBov0tUtAJCghOJ8lUUh X-Received: by 2002:a63:e145:: with SMTP id h5-v6mr4537533pgk.286.1531492649597; Fri, 13 Jul 2018 07:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531492649; cv=none; d=google.com; s=arc-20160816; b=skpoATvoYr08VBPB2FtMi60Gt1LiuLZSYtVyMMAyUNAkhVUkDfJJSdpw1Ghh2ztfA3 hSwdYa6IIqeIRE3fAXvF48kWGrekkxgF8rHzFywV7LIPBootzrErvmOniYngGyPuuc4b PTYwpjNZGdqAjr/ssO7hJJU/Ve+2VOG0Ie2mxMJAnISa3gF+n/MvtabPBwH0vou+nRPz AYSh/SUJ+4Bja6cYEtMMOBEddAu/JJex1dDK4TJw/8NwuUm5dnTALAGHnRSKtnzgsxXo 6al0+4FS6WKMdlK77JcA9QblWTeiijDHzjTbHPb5gu48qwaYKwmr5UZbmCC9liOwo8M5 jX+Q== 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=UJbFHHjhuyKCWNW6tIWWBRO8qfUUHuIJdbE6r8IEJc0=; b=SDKQiAA1N8mqhe0YdOKw0GOUV8CDZbntJpne3dbj19BCD3bxyaB1/s5/0orhAdi5vB rGp06yIVOcBYSKZeiuIyAeDEyloca2cUVayPpbzMffF3Iwyy0imC2ZP5jkE8789eYiNC J4cdMQaLSdzLHe9tu68OtJtREHQKwzHaiUkLz93ZW8eFZY8wK1an8lac1WxmMT0BuqIR w3eGcVXgeh0gCQj2QUeSZAXxEF2ViHZvm++5yBoJCXqJ5fJ5wV4DvQ1IwNXorH2q6Ql2 dO69IU1StuayWorCYxllpaO21uWYkC+lWa3Os7lo8GE6QlIx5F4lVdrZEWND5fxlpA3k /vzA== 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 y21-v6si23899862pfm.1.2018.07.13.07.37.14; Fri, 13 Jul 2018 07:37: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 S1730113AbeGMOuw (ORCPT + 99 others); Fri, 13 Jul 2018 10:50:52 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:41351 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729644AbeGMOuw (ORCPT ); Fri, 13 Jul 2018 10:50:52 -0400 Received: from wuerfel.lan ([46.223.138.35]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LlJ1m-1gEhYn1QoA-00b2Gh; Fri, 13 Jul 2018 16:35:27 +0200 From: Arnd Bergmann To: Miklos Szeredi Cc: y2038@lists.linaro.org, Arnd Bergmann , "Eric W. Biederman" , David Howells , Andrew Morton , Mimi Zohar , Deepa Dinamani , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [RESEND] fuse: convert last timespec use to timespec64 Date: Fri, 13 Jul 2018 16:35:10 +0200 Message-Id: <20180713143525.3144656-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:DtEqYo1dxnIUnZudwm3AASOcqYHAkIb1TcSiQINfz6k6Fkkrb2l KoWinwheLBaqlKGr+2nn4SOeBXV6S7KEcbC6JJMGne3GHpBFrsV459EC2CBGIbw1jyy4YVJ eNLz7p2FSKTkrQpnEgrwz12UMbJCvUkJ53OU6OpaTd9l8X4wswHda7fSl9klWIGPIN9imhw EqZG+TUf0ZFWYJL2G96tg== X-UI-Out-Filterresults: notjunk:1;V01:K0:J77Jj9/zJME=:wlDR2P2mdnG1ve45aNOGjd FenpoM4kc40iQB1qp0+1PrxWVmP4zoW6lfhzoSG8czHXdk5d5lgvU80xa1L+zIjWkwKG6agOs 3BKux27SGNHLd8cnehZsQgr3EIyyuIQFKVirXDyxctnDyau5xAoEPHxK9/fQ7QOP/SSUx8nbr EVBcBNRwhv0jV3pDSnl9D5VVpdqkbqbDjkbb/Nftm4Yy6SpkmW5ZruqIcQXny94QGQdSu6RYs 0mErfW5jeNOuRNuebehzOSU8uLzc3V6gtJI8y6Oeq6k+wP7htbwfKBwBTa4GMLrBy5+6g1dC/ JHUJtl/ZEoqLnLfTHEiyOYxNn18AnyUYDjEC6fZKRhhKzI2EBPGCCIgnGuElcS394Wqh7NcZ7 hfKdYXf94MX5BXMWlj+pJz/FJhph1GndQkAG6dBrXP5E+ALAtekDkMFu09/h/0sNcTVX/Bi9M jtz0oiMYJ74L6slbrAUxlYlOG856QeMFxAroru3A1d4Q43kaxZSAfy6/hzA3HlTAoAj1keR7G 9WS6u3WzcI8/3Pi7h9ZBXIlbKsUwVpjFBeBNzqIkUUAFEh5w6aHjFIQwPGYFYMLhIzKeBZPM3 cGgkItZen8hkEU46eJnBoRRZNEBuVUfSjgg8nnPZn0XcBRzi6IX5RS9nzkuh8N1OQOGcQy1lK TkMEf6/mwaTJHHcb8y47OtJ0IyaQPro1+QyLmfZNYlAMM51HJCsURCFF/SYUzExDXQKM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All of fuse uses 64-bit timestamps with the exception of the fuse_change_attributes(), so let's convert this one as well. Signed-off-by: Arnd Bergmann --- I submitted this on June 20 but got no reply. Miklos, could you pick this up for 4.19? --- fs/fuse/inode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 85b3954945af..f6f46bb5ef4b 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -209,7 +209,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, struct fuse_inode *fi = get_fuse_inode(inode); bool is_wb = fc->writeback_cache; loff_t oldsize; - struct timespec old_mtime; + struct timespec64 old_mtime; spin_lock(&fc->lock); if ((attr_version != 0 && fi->attr_version > attr_version) || @@ -218,7 +218,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, return; } - old_mtime = timespec64_to_timespec(inode->i_mtime); + old_mtime = inode->i_mtime; fuse_change_attributes_common(inode, attr, attr_valid); oldsize = inode->i_size; @@ -238,7 +238,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, truncate_pagecache(inode, attr->size); inval = true; } else if (fc->auto_inval_data) { - struct timespec new_mtime = { + struct timespec64 new_mtime = { .tv_sec = attr->mtime, .tv_nsec = attr->mtimensec, }; @@ -247,7 +247,7 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, * Auto inval mode also checks and invalidates if mtime * has changed. */ - if (!timespec_equal(&old_mtime, &new_mtime)) + if (!timespec64_equal(&old_mtime, &new_mtime)) inval = true; } -- 2.9.0