lkml.org 
[lkml]   [2016]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC v2b 3/5] fs: btrfs: Use vfs_time accessors
From
On Fri, Feb 12, 2016 at 5:57 AM, Arnd Bergmann <arnd@arndb.de> 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_time_to_timespec(inode->i_mtime);
>> + if (!timespec_equal(&ts, &now))
>> + inode->i_ctime = timespec_to_vfs_time(now);
>>
>
> The second one needs to be fs_time_to_timespec(inode->i_ctime), not i_mtime.


Yes, you are correct.
I will wait for some consensus on the proposal to figure out which
version to post again.

Thanks,
-Deepa

\
 
 \ /
  Last update: 2016-02-13 08:21    [W:0.064 / U:1.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site