bcache: Fix a dumb journal discard bug
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:27 +0000 (23:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2013 21:41:43 +0000 (14:41 -0700)
commit6d9d21e35fbfa2934339e96934f862d118abac23
tree80222e590d8c8f126101e1cb15cc627833821418
parent2f6cf0de0281d210061ce976f2d42d246adc75bb
bcache: Fix a dumb journal discard bug

That switch statement was obviously wrong, leading to some sort of weird
spinning on rare occasion with discards enabled...

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/bcache/journal.c