Re: [Y2038] [RFC v2b 3/5] fs: btrfs: Use vfs_time accessors

2016-02-12 Thread Deepa Dinamani
On Fri, Feb 12, 2016 at 5:57 AM, Arnd Bergmann wrote: > On Friday 12 February 2016 01:45:47 Deepa Dinamani wrote: >> + ts = vfs_time_to_timespec(inode->i_mtime); >> + if (!timespec_equal(&ts, &now)) >> + inode->i_mtime = timespec_to_vfs_time(now); >> + >> + ts = vfs

Re: [Y2038] [RFC v2b 3/5] fs: btrfs: Use vfs_time accessors

2016-02-12 Thread Arnd Bergmann
On Friday 12 February 2016 01:45:47 Deepa Dinamani wrote: > + ts = vfs_time_to_timespec(inode->i_mtime); > + if (!timespec_equal(&ts, &now)) > + inode->i_mtime = timespec_to_vfs_time(now); > + > + ts = vfs_time_to_timespec(inode->i_mtime); > + if (!timespec_equ

[Y2038] [RFC v2b 3/5] fs: btrfs: Use vfs_time accessors

2016-02-12 Thread Deepa Dinamani
This is in preparation for changing VFS inode timestamps to use 64 bit time. The VFS inode timestamps are not y2038 safe as they use struct timespec. These will be changed to use struct timespec64 instead and that is y2038 safe. But, since the above data type conversion will break the end file syst