Remove hardcoded maximum time
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 26 Oct 2009 18:52:52 +0000 (18:52 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 26 Oct 2009 22:04:30 +0000 (15:04 -0700)
commit293e8c6a1048bf3c342134b5ca6f79d68023258b
tree6d9ce6b9ccb1bcf4b9ab38172a2b4d9056b65b36
parentf97262c1d422e0a32289c75665d051914c8d69ad
Remove hardcoded maximum time

When iterating across the buffer list, afs_newslot used a hardcoded
maximum time to find the oldest. Instead of using this, just use the
accesstime of the first unused buffer that we find as the oldest, and
continue as normal.

Change-Id: Ifeacb8a407901b46a23fbc838b1fca761108ebbb
Reviewed-on: http://gerrit.openafs.org/738
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_buffer.c