Re: [PATCH v10 05/14] exfat: add file operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 15, 2020 at 9:28 AM Namjae Jeon <namjae.jeon@xxxxxxxxxxx> wrote:

> +
> +               ktime_get_real_ts64(&ts);
> +               exfat_set_entry_time(sbi, &ts,
> +                               &ep->dentry.file.modify_time,
> +                               &ep->dentry.file.modify_date,
> +                               &ep->dentry.file.modify_tz);

I think this part should use current_time() instead of ktime_get_real_ts64()
so it gets truncated to the correct resolution and range.

Please also check if there are other callers of ktime_get_real_ts64() that
may need the same change.

      Arnd



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux