]> git.baikalelectronics.ru Git - kernel.git/commit
autofs4: make "autofs4_can_expire" idempotent.
authorNeilBrown <neilb@suse.de>
Mon, 13 Oct 2014 22:52:18 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:16 +0000 (02:18 +0200)
commit5ec2076f64c815b365b4ac63c2a4b6331cf58e83
tree8fd68d91e7feb62145c66c89c2fe6fa459fd9df8
parent3b03282e593ac25c5003c804be2b0a5347a4b88f
autofs4: make "autofs4_can_expire" idempotent.

Have a "test" function change the value it is testing can be confusing,
particularly as a future patch will be calling this function twice.

So move the update for 'last_used' to avoid repeat expiry to the place
where the final determination on what to expire is known.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Ian Kent <raven@themaw.net>
Tested-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/autofs4/expire.c