]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use ktime_get_real_seconds for i_dtime
authorArnd Bergmann <arnd@arndb.de>
Sun, 29 Jul 2018 19:50:00 +0000 (15:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 19:50:00 +0000 (15:50 -0400)
commita4dc331386c7610378082e51b0fc6da77542fb1e
treee50bb5f0dbb6caf4ad7d6f0aed7f0e1cef91c12b
parent5dbf44a1f7a147310e37cdf950de314a127c7d2c
ext4: use ktime_get_real_seconds for i_dtime

We only care about the low 32-bit for i_dtime as explained in commit
0e462e5e181a ("ext4: avoid Y2038 overflow in recently_deleted()"), so
the use of get_seconds() is correct here, but that function is getting
removed in the process of the y2038 fixes, so let's use the modern
ktime_get_real_seconds() here.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c