From bc24c150ec245be8e0b11ca08d11675870d7544f Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 1 Dec 2000 19:16:02 +0000 Subject: 2000-12-01 Marcus Brinkmann * cache.c (scan_creds): Move I inside for-statement. Replace inner for-loop with a while-loop. New variable NEXT_I set to I->NEXT, because we might free I. Set I to NEXT_I at end of while block. Move update of leastidlastuse inside if block, because otherwise we will constantly prevent ourself from scanning. (scan_fhs): Very much the same. (scan_replies): Likewise. Also free CR. (check_cached_reply): Make HASH value absolute (as XID can be negative, and thus the modulus). Initialize REFERENCES to 1. --- nfsd/ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'nfsd/ChangeLog') diff --git a/nfsd/ChangeLog b/nfsd/ChangeLog index 6942b127..078a84e5 100644 --- a/nfsd/ChangeLog +++ b/nfsd/ChangeLog @@ -1,3 +1,18 @@ +2000-12-01 Marcus Brinkmann + + * cache.c (scan_creds): Move I inside for-statement. + Replace inner for-loop with a while-loop. New variable + NEXT_I set to I->NEXT, because we might free I. + Set I to NEXT_I at end of while block. + Move update of leastidlastuse inside if block, because + otherwise we will constantly prevent ourself from scanning. + (scan_fhs): Very much the same. + (scan_replies): Likewise. Also free CR. + + (check_cached_reply): Make HASH value absolute (as XID can be + negative, and thus the modulus). + Initialize REFERENCES to 1. + 2000-03-17 Thomas Bushnell, BSG * cache.c (create_cached_handle): Add comment. -- cgit v1.2.3