]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9438d8707fb03310da3727c8820b3e2768207f37
tree7bc6c1d8de35bce17da188cba13688671d517907
parent1697312eb8651fd422ffea5899d5f2ebb49fb892
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