summaryrefslogtreecommitdiffstats
path: root/fs/affs/affs.h
diff options
context:
space:
mode:
authorDengChao <chao.deng@linaro.org>2015-11-12 14:40:41 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-01-09 08:59:19 +0100
commitdb39c16724d019029d7533561754d92bef1b389a (patch)
tree9db0304601bce4a0704f721105dc756bcec0d649 /fs/affs/affs.h
parentfs/9p: use fscache mutex rather than spinlock (diff)
downloadlinux-db39c16724d019029d7533561754d92bef1b389a.tar.xz
linux-db39c16724d019029d7533561754d92bef1b389a.zip
fs:affs:Replace time_t with time64_t
The affs code uses "time_t" and "get_seconds()". This will cause problems on 32-bit architectures in 2038 when time_t overflows. This patch replaces them with "time64_t" and "ktime_get_real_seconds()". This patch introduces expensive 64-bit divsion in "secs_to_datestamp()", considering this function is not called so often, the cost should be acceptable. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: DengChao <chao.deng@linaro.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/affs/affs.h')
-rw-r--r--fs/affs/affs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h
index c69a87eaf57d..cc2b2efc9211 100644
--- a/fs/affs/affs.h
+++ b/fs/affs/affs.h
@@ -138,7 +138,7 @@ extern int affs_remove_hash(struct inode *dir, struct buffer_head *rem_bh);
extern int affs_remove_header(struct dentry *dentry);
extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh);
extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh);
-extern void secs_to_datestamp(time_t secs, struct affs_date *ds);
+extern void secs_to_datestamp(time64_t secs, struct affs_date *ds);
extern umode_t prot_to_mode(u32 prot);
extern void mode_to_prot(struct inode *inode);
__printf(3, 4)