aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/root.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-10-13 15:52:18 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:18:16 +0200
commit6ece08e6187a62dd5bdf7c49539980571922c551 (patch)
tree8fd68d91e7feb62145c66c89c2fe6fa459fd9df8 /fs/autofs4/root.c
parentautofs4: factor should_expire() out of autofs4_expire_indirect. (diff)
downloadlinux-dev-6ece08e6187a62dd5bdf7c49539980571922c551.tar.xz
linux-dev-6ece08e6187a62dd5bdf7c49539980571922c551.zip
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>
Diffstat (limited to 'fs/autofs4/root.c')
0 files changed, 0 insertions, 0 deletions