From patchwork Wed Jun 20 08:11:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139293 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp504042lji; Wed, 20 Jun 2018 01:37:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKeuzE2grURMYlfDf8/cTytXCy2kQ0mtLZz3a3wawpTtEt03HMzc2PJhQHRcOSlT9A4Sb8i X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr17216577plc.310.1529483871728; Wed, 20 Jun 2018 01:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529483871; cv=none; d=google.com; s=arc-20160816; b=u/4sd1gPY6yhfauB31kaMhhqnpvp5DDbJlYAduQrIftdOAb7f8rPumoktUVF2Z2Kl8 ozHmMnjTmnd7XSWs7Q/Vf/jYU1BjsWoKlHxbsJB6+t0Y2R82dx91+OKmPgjhWFX+Q82e klHXexxBwonS0MLmDdCY8r/z/ZRAOBXcD3oQFZMjcOFX0kW3uvGIRhSLxhlZZ0sd1Lrc KX7sxL4iRucS3bsI6XXzCD7bsn2exjH5z1vWKtY3eldgCmgHMxgvoAFS1jGnXRgytLsD gUBHKg3yTo++HJj+8blJboskWOLNkmHScKEw4UEI/kaTdqoUxQxalYr+8ViMt6v+KMhZ 6lDA== 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=OuZ8RAWCDejfDz1MKKtvaInbzTK6Azwnhy7o2xtIEA4=; b=rK3Snk5xUc7suvkuikjDRmrff8jKVzA81tVc8LBXyV811bfNTwC8cRNTFjsbE9MIRZ HIeLVLRPVt4r0LDMSJShCM5PyrATfn3Ux7L/z9LSWcpu/JQD2hhjpVBotS4kSOUhzMwk apJ3pkbtTikDnEoePk0wlybmViESnP9UUvDXWkK1NE6sFHF2lf7aV1U0Vay7dc55Sv+U DTrc6hjTWspxGo7x8aZ9Uy1srKy2gUHMWwuOhL8Jy6x0diQTojZPM3vwarwYZsFx5R3U ErhpvBTj7YJwaIlniYNQwT78sgW6Pa+J5oENrY+eObnrPRmt88uDHlEO+7UgA9r5FK6Q ELrg== 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 p1-v6si1825509pld.218.2018.06.20.01.37.51; Wed, 20 Jun 2018 01:37:51 -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 S932583AbeFTIht (ORCPT + 30 others); Wed, 20 Jun 2018 04:37:49 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:56377 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752595AbeFTIhq (ORCPT ); Wed, 20 Jun 2018 04:37:46 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0LuFsJ-1gEc482WUp-011fZ9; Wed, 20 Jun 2018 10:11:59 +0200 From: Arnd Bergmann To: Miklos Szeredi Cc: y2038@lists.linaro.org, Arnd Bergmann , "Eric W. Biederman" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fuse: convert last timespec use to timespec64 Date: Wed, 20 Jun 2018 10:11:46 +0200 Message-Id: <20180620081158.83283-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:gVWRUHLYqRlFx41uDorRnyHIMpUa9P+ru5dJ82jgQM+niYPxT/B rals0Ef9xHe79rKdeeRL4v0PRPCFq0zZj2mgtnohLqQVtHZKg1oX+Nq+B74LAYzp2JZbj9P PCodzLbVUPZaKtEOtgkhDQqy5gH7ByUcUMyvlRuO1UXaIbFZS5A4k0zbki3UQ2b+rs3oE6J ab+qboHWA2fmsn5jBlY4g== X-UI-Out-Filterresults: notjunk:1; V01:K0:ZFbgleFKVFo=:QMzu8/zYpwmWVVWdor10nA u+NOuergvIu6j6w7fkVrfW9/vQPXx5zIydaxZHiCVaqVUK/LTmSxZ0QBUxm53ouFpPm39lUKI XJH6HldrN8KSGUUX15dzLs4hIl6l3hBKEhQe6k/JjXdlIpXw3TGI7teQ+I4kADb3h95WoYwxp GY9a+0su6JwvgiZAguRZ/zKHKFC1uB4j6jLI/1fAAkDzHNAckottiSzRsh1zrAWc5WgOMTG5Q 2EwYxJjN6SfBooMGZqFdrLOcrhK/9w1aV6CDLAwoT5inH2opi5YJ7gjW0nHJczxdglqApjN6O CId1PaW0RSfa88Or2qCDMhe4mGjNUbawQM2LhQPCbYCa506gfgN/4wxYrzOUkaFggklWQ3NSC 5yHEad7rO++JAPHJDAifTji1ZSsyA3dS2gsvYU0idn8ja10jBFiR7spWSyh9ebYATGzPpO+9M CrSxk47S8hnVFppwDYRjCaqIel5btY0hb073iSIvGCFTflo2BV8Sa1veLTf7O9Q1k3/Zgeub5 L7RpbzMpEmUo/hKpljnwQfyjCm1Mpgh6RLahDAiugWILyea0mOlCttoOr7PKCBB0jCNF3TkzP /jGalzU1aF164jOb9CnInnh0RTg1PM/HbR7IeQ7N99gyym6fTrmEHUdHgUWY0gOUAtQYS9CAT 8Gt65s35VwZ5wmk0H4jrN0Gy3vK+tJ/IZeDa8aX/41hLgwp4Yp1p2MzCTS0sM4Ojgy/8= 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 --- fs/fuse/inode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.9.0 diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index a24df8861b40..3c71eb062ef2 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -208,7 +208,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) || @@ -217,7 +217,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; @@ -237,7 +237,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, }; @@ -246,7 +246,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; }