From: Jeff Layton Date: Mon, 28 Jan 2013 19:41:13 +0000 (-0500) Subject: nfsd: clean up and clarify the cache expiration code X-Git-Tag: v3.9-rc1~40^2~33 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a0774de6cb908f5ba7806d09aaf86bb03fa182;p=pandora-kernel.git nfsd: clean up and clarify the cache expiration code Add a preprocessor constant for the expiry time of cache entries, and move the test for an expired entry into a function. Note that the current code does not test for RC_INPROG. It just assumes that it won't take more than 2 minutes to fill out an in-progress entry. I'm not sure how valid that assumption is though, so let's just ensure that we never consider an RC_INPROG entry to be expired. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed