lkml.org 
[lkml]   [2019]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 03/20] timestamp_truncate: Replace users of timespec64_trunc
Date
Deepa Dinamani <deepa.kernel@gmail.com> writes:

> diff --git a/fs/fat/misc.c b/fs/fat/misc.c
> index 1e08bd54c5fb..53bb7c6bf993 100644
> --- a/fs/fat/misc.c
> +++ b/fs/fat/misc.c
> @@ -307,8 +307,9 @@ int fat_truncate_time(struct inode *inode, struct timespec64 *now, int flags)
> inode->i_atime = (struct timespec64){ seconds, 0 };
> }
> if (flags & S_CTIME) {
> - if (sbi->options.isvfat)
> - inode->i_ctime = timespec64_trunc(*now, 10000000);
> + if (sbi->options.isvfat) {
> + inode->i_ctime = timestamp_truncate(*now, inode);
> + }
> else
> inode->i_ctime = fat_timespec64_trunc_2secs(*now);
> }

Looks like broken. It changed to sb->s_time_gran from 10000000, and
changed coding style.

Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

\
 
 \ /
  Last update: 2019-07-30 10:28    [W:0.277 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site