drbd: reduce code duplication when receiving data requests
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 11 Aug 2010 21:28:00 +0000 (23:28 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:19 +0000 (18:38 +0200)
commit80a40e439e5a3f30b0a6210a1add6d7c33392e54
tree4442914b7bb70a1d9bde4be3cd3eb7085738ed66
parent1d7734a0df02ff5068ff8baa1447c7baee601db1
drbd: reduce code duplication when receiving data requests

also canonicalize the return values of read_for_csum
and drbd_rs_begin_io to return -ESOMETHING, or 0 for success.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_actlog.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_worker.c