sunrpc/cache: change cache_defer_req to return -ve error, not boolean.
authorNeilBrown <neilb@suse.de>
Wed, 9 Sep 2009 06:32:54 +0000 (16:32 +1000)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 11 Sep 2009 21:03:27 +0000 (17:03 -0400)
commit9e4c6379a62d94d3362b12c7a00f2105df6d7eeb
tree457b1b5c1a28752d4fa878b2d4b1ed0517f0c78f
parent4cfc7e6019caa3e97d2a81c48c8d575d7b38d751
sunrpc/cache: change cache_defer_req to return -ve error, not boolean.

As "cache_defer_req" does not sound like a predicate, having it return
a boolean value can be confusing.  It is more consistent to return
0 for success and negative for error.

Exactly what error code to return is not important as we don't
differentiate between reasons why the request wasn't deferred,
we only care about whether it was deferred or not.

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