sunrpc/cache: avoid variable over-loading in cache_defer_req
authorNeilBrown <neilb@suse.de>
Wed, 9 Sep 2009 06:32:54 +0000 (16:32 +1000)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 18 Sep 2009 21:01:12 +0000 (17:01 -0400)
commitcd68c374ea9ce202ae7c6346777d10078e243d49
tree0aa206d2605c57c6944f7461c6eb1576a9d1f987
parent67e7328f1577230ef3a1430c1a7e5c07978c6e51
sunrpc/cache: avoid variable over-loading in cache_defer_req

In cache_defer_req, 'dreq' is used for two significantly different
values that happen to be of the same type.

This is both confusing, and makes it hard to extend the range of one of
the values as we will in the next patch.
So introduce 'discard' to take one of the values.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/cache.c