bcache: Fix for when no journal entries are found
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:29 +0000 (23:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2013 21:41:43 +0000 (14:41 -0700)
commitc426c4fd46f709ade2bddd51c5738729c7ae1db5
treeb8535ddd7d830429ffafd3202524511eef70027d
parentaee6f1cfff3ce240eb4b43b41ca466b907acbd2e
bcache: Fix for when no journal entries are found

The journal replay code didn't handle this case, causing it to go into
an infinite loop...

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