From patchwork Fri Jul 13 14:35:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 141898 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp881890ljj; Fri, 13 Jul 2018 07:36:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpczuHOmrTF9mB1j62NrGgo8xG2EWslphBzuOXVm7vknu4g60aMOpMm+WaxNVPMMHtjplLcX X-Received: by 2002:a63:d80f:: with SMTP id b15-v6mr6443017pgh.347.1531492562043; Fri, 13 Jul 2018 07:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531492562; cv=none; d=google.com; s=arc-20160816; b=k1YuYTx3yMG9kdDsWyupJpcJVMynHM1+7Cz5Do1bDSsHP9gzQSciT5tbymCIFJYzdG 2bhdVXps1xgIoHI3eNcd2lmunx1ujGjX5xe4MHTUW5Wo7NPNJFw8IAd08G1NEarCPBQQ A3yUyiy6O6XWiRxxchO0oCBX2UNb7mAmUXSElCt1ABIS+ezWjFkaHqVcAtnwCUAD11A4 B/EGr93zGCF1zLuF8ME5O2ne5whV0kR7Ftho/dcO0SCWJeK15Jourfa/um9rdqmkktDm mPsuc7Dl3WoA46TehAUvIQSMCBPvWodEE5m6fvwU24GPB0VX6FqGFpA41agECK5p0hQO BJRA== 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 e185-v6si23286701pgc.318.2018.07.13.07.36.01; Fri, 13 Jul 2018 07:36:02 -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 S1730196AbeGMOuw (ORCPT + 31 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(-) -- 2.9.0 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; }