Deepa Dinamani
078cd8279e
fs: Replace CURRENT_TIME with current_time() for inode timestamps
...
CURRENT_TIME macro is not appropriate for filesystems as it
doesn't use the right granularity for filesystem timestamps.
Use current_time() instead.
CURRENT_TIME is also not y2038 safe.
This is also in preparation for the patch that transitions
vfs timestamps to use 64 bit time and hence make them
y2038 safe. As part of the effort current_time() will be
extended to do range checks. Hence, it is necessary for all
file system timestamps to use current_time(). Also,
current_time() will be transitioned along with vfs to be
y2038 safe.
Note that whenever a single call to current_time() is used
to change timestamps in different inodes, it is because they
share the same time granularity.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Felipe Balbi <balbi@kernel.org>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Acked-by: David Sterba <dsterba@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-09-27 21:06:21 -04:00
..
cluster
Merge branch 'akpm' (patches from Andrew)
2016-07-26 19:55:54 -07:00
dlm
Merge branch 'work.const-qstr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2016-08-06 09:49:02 -04:00
dlmfs
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
acl.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
acl.h
ocfs2: fix posix_acl_create deadlock
2016-05-12 15:52:50 -07:00
alloc.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
alloc.h
ocfs2: retry on ENOSPC if sufficient space in truncate log
2016-08-02 17:31:41 -04:00
aops.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
aops.h
ocfs2: fix ip_unaligned_aio deadlock with dio work queue
2016-03-25 16:37:42 -07:00
blockcheck.c
blockcheck.h
buffer_head_io.c
Merge branch 'for-4.8/core' of git://git.kernel.dk/linux-block
2016-07-26 15:03:07 -07:00
buffer_head_io.h
dcache.c
VFS: normal filesystems (and lustre): d_inode() annotations
2015-04-15 15:06:57 -04:00
dcache.h
dir.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
dir.h
VFS: normal filesystems (and lustre): d_inode() annotations
2015-04-15 15:06:57 -04:00
dlmglue.c
ocfs2: remove obscure BUG_ON in dlmglue
2016-07-26 16:19:19 -07:00
dlmglue.h
export.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2015-04-26 17:22:07 -07:00
export.h
extent_map.c
ocfs2: neaten do_error, ocfs2_error and ocfs2_abort
2015-09-04 16:54:41 -07:00
extent_map.h
file.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
file.h
ocfs2: prepare some interfaces used in append direct io
2015-02-16 17:56:04 -08:00
filecheck.c
ocfs2: sysfile interfaces for online file check
2016-03-22 15:36:02 -07:00
filecheck.h
ocfs2: sysfile interfaces for online file check
2016-03-22 15:36:02 -07:00
heartbeat.c
heartbeat.h
inode.c
ocfs2: fix improper handling of return errno
2016-05-26 15:35:44 -07:00
inode.h
ocfs2: cleanup implemented prototypes
2016-07-26 16:19:19 -07:00
ioctl.c
wrappers for ->i_mutex access
2016-01-22 18:04:28 -05:00
ioctl.h
journal.c
ocfs2: improve recovery performance
2016-07-26 16:19:19 -07:00
journal.h
jbd2: add support for avoiding data writes during transaction commits
2016-04-24 00:56:07 -04:00
Kconfig
localalloc.c
ocfs2: fix occurring deadlock by changing ocfs2_wq from global to local
2016-03-25 16:37:42 -07:00
localalloc.h
locks.c
ocfs2: fix flock panic issue
2015-12-29 17:45:49 -08:00
locks.h
Makefile
ocfs2: disable BUG assertions in reading blocks
2016-06-24 17:23:52 -07:00
mmap.c
mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros
2016-04-04 10:41:08 -07:00
mmap.h
move_extents.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
move_extents.h
namei.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
namei.h
ocfs2: do not include dio entry in case of orphan scan
2015-11-05 19:34:48 -08:00
ocfs1_fs_compat.h
ocfs2.h
mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros
2016-04-04 10:41:08 -07:00
ocfs2_fs.h
ocfs2: fix comment in struct ocfs2_extended_slot
2016-05-19 19:12:14 -07:00
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
ocfs2: code clean up for direct io
2016-03-25 16:37:42 -07:00
quota.h
quota: constify qtree_fmt_operations structures
2016-01-04 10:58:35 +01:00
quota_global.c
quota: use time64_t internally
2016-06-19 18:09:31 +02:00
quota_local.c
ocfs2: neaten do_error, ocfs2_error and ocfs2_abort
2015-09-04 16:54:41 -07:00
refcounttree.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
refcounttree.h
reservations.c
ocfs2: make resv_lock spinlock static
2015-02-10 14:30:29 -08:00
reservations.h
resize.c
ocfs2: solve a problem of crossing the boundary in updating backups
2016-03-25 16:37:42 -07:00
resize.h
slot_map.c
ocfs2: clean up an unneeded goto in ocfs2_put_slot()
2016-05-19 19:12:14 -07:00
slot_map.h
stack_o2cb.c
ocfs2: avoid a pointless delay in o2cb_cluster_check()
2015-04-14 16:48:57 -07:00
stack_user.c
ocfs2: ensure that dlm lockspace is created by kernel module
2016-08-02 17:31:41 -04:00
stackglue.c
ocfs2: fix a redundant re-initialization
2016-07-26 16:19:19 -07:00
stackglue.h
ocfs2: export ocfs2_kset for online file check
2016-03-22 15:36:02 -07:00
suballoc.c
ocfs2: retry on ENOSPC if sufficient space in truncate log
2016-08-02 17:31:41 -04:00
suballoc.h
super.c
Merge branch 'akpm' (patches from Andrew)
2016-07-26 19:55:54 -07:00
super.h
ocfs2: fix occurring deadlock by changing ocfs2_wq from global to local
2016-03-25 16:37:42 -07:00
symlink.c
switch ->get_link() to delayed_call, kill ->put_link()
2015-12-30 13:01:03 -05:00
symlink.h
sysfile.c
sysfile.h
uptodate.c
ocfs2: remove NULL assignments on static
2014-06-04 16:53:53 -07:00
uptodate.h
xattr.c
fs: Replace CURRENT_TIME with current_time() for inode timestamps
2016-09-27 21:06:21 -04:00
xattr.h
ocfs2: fix posix_acl_create deadlock
2016-05-12 15:52:50 -07:00