ext4: use current_time() for inode timestamps
authorDeepa Dinamani <deepa.kernel@gmail.com>
Tue, 15 Nov 2016 02:40:10 +0000 (21:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Nov 2016 02:40:10 +0000 (21:40 -0500)
commiteeca7ea1baa939c97d58ba821f8c6e683e4388f2
treebaeec58450ea2363f391abb278175feec940552e
parent30a9d7afe70ed6bd9191d3000e2ef1a34fb58493
ext4: use current_time() for inode timestamps

CURRENT_TIME_SEC and CURRENT_TIME are not y2038 safe.
current_time() will be transitioned to be y2038 safe
along with vfs.

current_time() returns timestamps according to the
granularities set in the super_block.
The granularity check in ext4_current_time() to call
current_time() or CURRENT_TIME_SEC is not required.
Use current_time() directly to obtain timestamps
unconditionally, and remove ext4_current_time().

Quota files are assumed to be on the same filesystem.
Hence, use current_time() for these files as well.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
fs/ext4/acl.c
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/ialloc.c
fs/ext4/inline.c
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/namei.c
fs/ext4/super.c
fs/ext4/xattr.c