ext2: use ktime_get_real_seconds for timestamps
authorArnd Bergmann <arnd@arndb.de>
Wed, 20 Jun 2018 14:31:40 +0000 (16:31 +0200)
committerJan Kara <jack@suse.cz>
Wed, 27 Jun 2018 11:59:18 +0000 (13:59 +0200)
commitfe2c32545bfc281122cb8b66572949a366ad747e
tree2b339d9911e3d103f19075c1210acb16db5b1707
parentc3b9cecd89b806e14544af596396e18abd00f145
ext2: use ktime_get_real_seconds for timestamps

get_seconds() is deprecated because of the y2038 overflow, so users
should migrate to 64-bit timestamps using ktime_get_real_seconds().
In ext2, the timestamps in the superblock and in the inode are all
limited to 32-bit, and this won't get fixed, so let's just stop
using the deprecated interface and keep truncating.

All users of ext2 should migrate to ext4 before 2038 to prevent this
from causing problems.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/inode.c
fs/ext2/super.c