[Y2038] [PATCH 3/4] vfs: Add support for vfs code to use 64 bit time.

2015-12-19 Thread Deepa Dinamani
VFS currently uses struct timespec timestamps which are not y2038 safe. Change all the struct inode timestamps accesses through accessor functions only. This will help the switch over to 64 bit times seamlessly. Change all struct iattr and struct kstat timestamps to use struct inode_timespec.

[Y2038] [PATCH 4/4] fs: cifs: Add support for cifs to use 64 bit time

2015-12-19 Thread Deepa Dinamani
Change all struct timespec references to struct inode_timespec. This will help the switch to struct timespec64 when CONFIG_FS_USES_64BIT_TIME is enabled. Use current_fs_time() instead of CURRENT_TIME macros to help range and precesion checks. Truncate and perform range checks before saving the

[Y2038] [PATCH 1/4] vfs: Add 64 bit time support

2015-12-19 Thread Deepa Dinamani
The current representation of inode times in struct inode, struct iattr, and struct kstat use struct timespec. timespec is not y2038 safe. Use struct inode_time for struct inode timestamp fields to maintain same size for times across 32 bit and 64 bit architectures. In addition, inode_time is

[Y2038] [PATCH 0/4] fs: Add support 64 bit timestamps

2015-12-19 Thread Deepa Dinamani
The first two patches contain the basic framework for the 64 bit time migration for filesystems. The next two patches shows how the framework has been adapted to vfs layer and cifs filesystem. There might be some minor changes or additions required as I start adapting to other filesystems. The

[Y2038] [PATCH v2 0/4] fs: Add 64 bit time support

2015-12-19 Thread Deepa Dinamani
The first two patches contain the basic framework for the 64 bit time migration for filesystems. The next two patches shows how the framework has been adapted to vfs layer and cifs filesystem. There might be some minor changes or additions required as I start adapting to other filesystems. The