libafs: Remove support for length optimisation

At one point afs_StoreAllSegments had an optimisation to speed up
stores. However, that optimistation used the chunkLength without
taking appropriate locks, and was disabled. The variable assignments
which still exist from this code cause errors with gcc 4.6.0, so just
remove them.

Change-Id: I86547d94280d7f07214fbf6ef5b3db61c9781e59
Reviewed-on: http://gerrit.openafs.org/4991
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2011-07-13 13:55:39 +01:00 committed by Derrick Brashear
parent 6a03341df6
commit cd8ebb14e5

View File

@ -169,7 +169,6 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
afs_hyper_t newDV, oldDV; /* DV when we start, and finish, respectively */ afs_hyper_t newDV, oldDV; /* DV when we start, and finish, respectively */
struct dcache **dcList; struct dcache **dcList;
unsigned int i, j, minj, moredata, high, off; unsigned int i, j, minj, moredata, high, off;
afs_size_t tlen;
afs_size_t maxStoredLength; /* highest offset we've written to server. */ afs_size_t maxStoredLength; /* highest offset we've written to server. */
int safety, marineronce = 0; int safety, marineronce = 0;
@ -238,7 +237,6 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
origCBs = afs_allCBs; origCBs = afs_allCBs;
maxStoredLength = 0; maxStoredLength = 0;
tlen = avc->f.m.Length;
minj = 0; minj = 0;
do { do {