]> git.baikalelectronics.ru Git - kernel.git/commit
timestamp_truncate: Replace users of timespec64_trunc
authorDeepa Dinamani <deepa.kernel@gmail.com>
Sat, 15 Jun 2019 16:00:05 +0000 (09:00 -0700)
committerDeepa Dinamani <deepa.kernel@gmail.com>
Fri, 30 Aug 2019 14:27:17 +0000 (07:27 -0700)
commit3818c1907a5e4e8fbd57fb14cea77de7c507111a
tree6ecfae43da546781513ca392b18857155da87f1b
parent50e17c000c467fbc927fc001df99beb4027a5323
timestamp_truncate: Replace users of timespec64_trunc

Update the inode timestamp updates to use timestamp_truncate()
instead of timespec64_trunc().

The change was mostly generated by the following coccinelle
script.

virtual context
virtual patch

@r1 depends on patch forall@
struct inode *inode;
identifier i_xtime =~ "^i_[acm]time$";
expression e;
@@

inode->i_xtime =
- timespec64_trunc(
+ timestamp_truncate(
...,
- e);
+ inode);

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jeff Layton <jlayton@kernel.org>
Cc: adrian.hunter@intel.com
Cc: dedekind1@gmail.com
Cc: gregkh@linuxfoundation.org
Cc: hch@lst.de
Cc: jaegeuk@kernel.org
Cc: jlbec@evilplan.org
Cc: richard@nod.at
Cc: tj@kernel.org
Cc: yuchao0@huawei.com
Cc: linux-f2fs-devel@lists.sourceforge.net
Cc: linux-ntfs-dev@lists.sourceforge.net
Cc: linux-mtd@lists.infradead.org
fs/attr.c
fs/configfs/inode.c
fs/f2fs/file.c
fs/kernfs/inode.c
fs/ntfs/inode.c
fs/ubifs/file.c