sunrpc/cache: factor out cache_is_expired
authorNeilBrown <neilb@suse.de>
Wed, 3 Feb 2010 06:31:31 +0000 (17:31 +1100)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 14 Mar 2010 22:08:37 +0000 (18:08 -0400)
commit2f50d8b63dd6e5320a9d223298df19df3502da29
treec1b9aa6c882151bcdadd994233d7b8f33a43b9fb
parent3af4974eb2c7867d6e160977195dfde586d0e564
sunrpc/cache: factor out cache_is_expired

This removes a tiny bit of code duplication, but more important
prepares for following patch which will perform the expiry check in
cache_lookup and the rest of the validity check in cache_check.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/cache.c