OSDN Git Service

sunrpc: extract some common sunrpc_cache code from nfsd
authorNeilBrown <neilb@suse.de>
Thu, 12 Aug 2010 06:55:22 +0000 (16:55 +1000)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 7 Sep 2010 23:21:19 +0000 (19:21 -0400)
commit17cebf658e088935d4bdebfc7ad9800e9fc4a0b2
tree7bc6c1d8de35bce17da188cba13688671d517907
parent1132b26029918aa8fb5ba24a81b5c234e61f356c
sunrpc: extract some common sunrpc_cache code from nfsd

Rather can duplicating this idiom twice, put it in an inline function.
This reduces the usage of 'expiry_time' out side the sunrpc/cache.c
code and thus the impact of a change that is about to be made to that
field.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c
include/linux/sunrpc/cache.h