]> git.baikalelectronics.ru Git - kernel.git/commit
autofs: fix inconsistent use of now variable
authorIan Kent <raven@themaw.net>
Wed, 22 Aug 2018 04:58:44 +0000 (21:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:49 +0000 (10:52 -0700)
commitb7f1e0f5effebeff8de4975f02703500f3b917ec
treed17b5f80b83093a863773d168c437d3f00aa32c5
parentc1f86406ebc4c8725c164cc4d16518ebd6a0eee9
autofs: fix inconsistent use of now variable

The global variable "now" in fs/autofs/expire.c is used in an inconsistent
way, sometimes using jiffies directly, and sometimes using the "now"
variable, and setting it isn't done consistently either.

But the autofs dentry info last_used field is only updated during path
walks or during expire so jiffies can be used directly and the global
variable "now" removed.

Link: http://lkml.kernel.org/r/152937731702.21213.7371321165189170865.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs/expire.c