From patchwork Fri May 30 20:01:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 354325 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6A6351400A8 for ; Sat, 31 May 2014 06:12:00 +1000 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqT8X-0002fo-9F; Fri, 30 May 2014 20:10:45 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqT8V-0002ZS-1w for linux-mtd@lists.infradead.org; Fri, 30 May 2014 20:10:43 +0000 Received: from wuerfel.lan (HSI-KBW-134-3-133-35.hsi14.kabel-badenwuerttemberg.de [134.3.133.35]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0LbJZC-1WOG6q176Y-00ksuB; Fri, 30 May 2014 22:10:10 +0200 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Subject: [RFC 27/32] jffs2: convert to struct inode_time Date: Fri, 30 May 2014 22:01:51 +0200 Message-Id: <1401480116-1973111-28-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1401480116-1973111-1-git-send-email-arnd@arndb.de> References: <1401480116-1973111-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:pkhZoD4pynOALW5MVaW2zo+/ODzGzAq8Y3nLnFhjicY QrdDE1ou8c6f5+HHSIm6/Dm7cnsreaE/VTC4WqdMP8z6Wh4fOu ynrACDgn2XVyJUj3/kTFAviGcmUVSlDyhZJkTN+/qcxmvuB7eb iSQdvK3Gpl0talfz0BnQEwRD8pbPRYJUtGBJu48q6mDrvzm93L 7ptQt0QLwZEiSGuc7H+Zp/xHKjRZVxMQzE5LXAPf6gJrJmO/WD BnRy+1xvmAmHNH6kF44GevLvNHTvbjBC16sQgbEQ91PW9unHDF lCxfZ0Gsjq/rze0qSUtsB46kEzHoz/AYxzBBper4uBaBPTGvXD HD41xmH8IOyovjVlhgj2pletezGHyVGtWjn6II0HL X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140530_131043_465360_C3DEAFAB X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.2 (+) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.13 listed in list.dnswl.org] Cc: linux-arch@vger.kernel.org, Arnd Bergmann , hpa@zytor.com, hch@infradead.org, john.stultz@linaro.org, linux-mtd@lists.infradead.org, lftan@altera.com, linux-fsdevel@vger.kernel.org, geert@linux-m68k.org, tglx@linutronix.de, David Woodhouse , joseph@codesourcery.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org jffs2 uses unsigned 32-bit seconds for inode timestamps, which will work for the next 92 years, but the VFS uses struct timespec for timestamps, which is only good until 2038 on 32-bit CPUs. This gets us one small step closer to lifting the VFS limit by using struct inode_time in jffs2. Signed-off-by: Arnd Bergmann Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org --- fs/jffs2/os-linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jffs2/os-linux.h b/fs/jffs2/os-linux.h index d200a9b..64c2dfc 100644 --- a/fs/jffs2/os-linux.h +++ b/fs/jffs2/os-linux.h @@ -31,7 +31,7 @@ struct kvec; #define JFFS2_F_I_GID(f) (i_gid_read(OFNI_EDONI_2SFFJ(f))) #define JFFS2_F_I_RDEV(f) (OFNI_EDONI_2SFFJ(f)->i_rdev) -#define ITIME(sec) ((struct timespec){sec, 0}) +#define ITIME(sec) ((struct inode_time){sec, 0}) #define I_SEC(tv) ((tv).tv_sec) #define JFFS2_F_I_CTIME(f) (OFNI_EDONI_2SFFJ(f)->i_ctime.tv_sec) #define JFFS2_F_I_MTIME(f) (OFNI_EDONI_2SFFJ(f)->i_mtime.tv_sec)