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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:09 +0000 (07:13 -0700)
commit808eea9d2912e4a3fb8cd45e3e3da94d114757fb
treeee108cbf8b8e1b2cbf910268df03d71e2df9348b
parentbb343115253500dcee63ea78d765e4c2f2a57fc4
bcache: Fix for when no journal entries are found

commit c426c4fd46f709ade2bddd51c5738729c7ae1db5 upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/journal.c