drbd: __req_mod: make DISCARD_WRITE and independend case
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 24 Jul 2012 07:31:18 +0000 (09:31 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:37 +0000 (16:58 +0100)
commit934722a2dbf87b43d39c787441e511157d5add94
treec41a5b34433473068596cf237176dba269af1d5f
parenta0d856dfaed16efb9600b2a7d147cb6dbc11ff94
drbd: __req_mod: make DISCARD_WRITE and independend case

cherry-picked and adapted from drbd 9 devel branch

This looks cleaner to me,
and also gets rid of the other ugly if-inside-case-fall-through.

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