OSDN Git Service

fs: ubifs: Eliminate timespec64_trunc() usage
authorDeepa Dinamani <deepa.kernel@gmail.com>
Tue, 3 Dec 2019 05:19:43 +0000 (21:19 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Dec 2019 00:10:54 +0000 (19:10 -0500)
commit1bfad0c079415a3e7152c4dd4f2fb0b2e4c2851d
tree48753d5176e329dd6d8df131397dae2925a5bf24
parent668c9a61e3bf31b0dff108009add7fcd4c387869
fs: ubifs: Eliminate timespec64_trunc() usage

DEFAULT_TIME_GRAN is seconds granularity. We can
just drop the nsec while creating the default root node.
Delete the unneeded call to timespec64_trunc().

Also update the ktime_get_* api to match the one used in
current_time(). This allows for the timestamps to be updated
by using the same ktime_get_* api always.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: richard@nod.at
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ubifs/sb.c