Kent Overstreet faa5673617 bcache: Journal replay fix
The journal replay code starts by finding something that looks like a
valid journal entry, then it does a binary search over the unchecked
region of the journal for the journal entries with the highest sequence
numbers.

Trouble is, the logic was wrong - journal_read_bucket() returns true if
it found journal entries we need, but if the range of journal entries
we're looking for loops around the end of the journal - in that case
journal_read_bucket() could return true when it hadn't found the highest
sequence number we'd seen yet, and in that case the binary search did
the wrong thing. Whoops.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
2013-07-12 00:22:48 -07:00
..
2013-07-12 00:22:48 -07:00
2013-04-24 11:42:41 +10:00
2013-03-01 22:45:51 +00:00
2013-03-01 22:45:51 +00:00
2012-03-28 18:41:29 +01:00
2013-03-01 22:45:51 +00:00
2013-05-10 14:37:21 +01:00
2012-07-30 17:25:16 -07:00
2013-05-10 14:37:16 +01:00
2013-05-10 14:37:16 +01:00
2007-10-20 02:01:26 +01:00
2013-03-01 22:45:47 +00:00
2012-12-21 20:23:38 +00:00
2013-03-23 14:15:29 -07:00
2013-03-23 16:11:31 -07:00
2013-03-23 14:15:29 -07:00
2013-03-23 16:11:31 -07:00
2013-06-13 10:13:29 -07:00
2013-04-24 11:42:43 +10:00
2013-06-13 10:13:29 -07:00
2013-06-13 10:13:29 -07:00
2013-06-13 10:13:29 -07:00