aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_req.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2010-12-07 04:43:29 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 05:36:15 -0500
commit0cf9d27e38447efe5e5edce155a66a782a5aac4a (patch)
tree995f0581eacec75533f6b8918ecd43cfb510c1f5 /drivers/block/drbd/drbd_req.c
parent662d91a23a8e8451ca47c08d5cff710fd080fd3a (diff)
drbd: Get rid of unnecessary macros (2)
The FAULT_ACTIVE macro just wraps the drbd_insert_fault macro for no apparent reason. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
-rw-r--r--drivers/block/drbd/drbd_req.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c
index 079213d93490..53e7cc506456 100644
--- a/drivers/block/drbd/drbd_req.c
+++ b/drivers/block/drbd/drbd_req.c
@@ -1020,9 +1020,9 @@ allocate_barrier:
1020 * stable storage, and this is a WRITE, we may not even submit 1020 * stable storage, and this is a WRITE, we may not even submit
1021 * this bio. */ 1021 * this bio. */
1022 if (get_ldev(mdev)) { 1022 if (get_ldev(mdev)) {
1023 if (FAULT_ACTIVE(mdev, rw == WRITE ? DRBD_FAULT_DT_WR 1023 if (drbd_insert_fault(mdev, rw == WRITE ? DRBD_FAULT_DT_WR
1024 : rw == READ ? DRBD_FAULT_DT_RD 1024 : rw == READ ? DRBD_FAULT_DT_RD
1025 : DRBD_FAULT_DT_RA)) 1025 : DRBD_FAULT_DT_RA))
1026 bio_endio(req->private_bio, -EIO); 1026 bio_endio(req->private_bio, -EIO);
1027 else 1027 else
1028 generic_make_request(req->private_bio); 1028 generic_make_request(req->private_bio);