Re: [PATCH v4 10/26] fs: btrfs: Use ktime_get_real_ts for root ctime

2016-08-15 Thread David Sterba
On Sat, Aug 13, 2016 at 03:48:22PM -0700, Deepa Dinamani wrote: > btrfs_root_item maintains the ctime for root updates. > This is not part of vfs_inode. > > Since current_time() uses struct inode* as an argument > as Linus suggested, this cannot be used to update root > times unless, we modify

[PATCH v4 10/26] fs: btrfs: Use ktime_get_real_ts for root ctime

2016-08-14 Thread Deepa Dinamani
btrfs_root_item maintains the ctime for root updates. This is not part of vfs_inode. Since current_time() uses struct inode* as an argument as Linus suggested, this cannot be used to update root times unless, we modify the signature to use inode. Since btrfs uses nanosecond time granularity, it