From: NeilBrown Date: Wed, 9 Sep 2009 06:32:54 +0000 (+1000) Subject: sunrpc/cache: simplify cache_fresh_locked and cache_fresh_unlocked. X-Git-Tag: v2.6.32-rc1~412^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908329f2c08b8b5af7b394f709b0ee9c43b93041;p=pandora-kernel.git sunrpc/cache: simplify cache_fresh_locked and cache_fresh_unlocked. The extra call to cache_revisit_request in cache_fresh_unlocked is not needed, as should have been fairly clear at the time of commit 4013edea9a0b6cdcb1fdf5d4011e47e068fd6efb If there are requests to be revisited, then we can be sure that CACHE_PENDING is set, so the second call is sufficient. So remove the first call. Then remove the 'new' parameter, then remove the return value for cache_fresh_locked which is only used to provide the value for 'new'. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed