alistair23-linux/fs/kernfs
Deepa Dinamani 3a3a5fece6 fs: kernfs: Replace CURRENT_TIME by current_fs_time()
This is in preparation for the series that transitions
filesystem timestamps to use 64 bit time and hence make
them y2038 safe.

CURRENT_TIME macro will be deleted before merging the
aforementioned series.

Use current_fs_time() instead of CURRENT_TIME for inode
timestamps.

struct kernfs_node is associated with a sysfs file/ directory.
Truncate the values to appropriate time granularity when
writing to inode timestamps of the files.

ktime_get_real_ts() is used to obtain times for
struct kernfs_iattrs. Since these times are later assigned to
inode times using timespec_truncate() for all filesystem based
operations, we can save the supers list traversal time here by
using ktime_get_real_ts() directly.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-29 10:11:44 -07:00
..
dir.c fs: kernfs: Replace CURRENT_TIME by current_fs_time() 2016-03-29 10:11:44 -07:00
file.c kernfs: remove outdated and confusing comment 2015-05-24 12:28:29 -07:00
inode.c fs: kernfs: Replace CURRENT_TIME by current_fs_time() 2016-03-29 10:11:44 -07:00
Kconfig
kernfs-internal.h kernfs: make kernfs_get_inode() public 2015-06-18 16:54:28 -04:00
Makefile
mount.c kernfs: define kernfs_node_dentry 2016-02-16 13:04:58 -05:00
symlink.c switch ->get_link() to delayed_call, kill ->put_link() 2015-12-30 13:01:03 -05:00