bcache: Minor journal fix
authorKent Overstreet <kmo@daterainc.com>
Mon, 5 Aug 2013 21:04:06 +0000 (14:04 -0700)
committerKent Overstreet <kmo@daterainc.com>
Wed, 8 Jan 2014 21:05:06 +0000 (13:05 -0800)
commitb3fa7e77e67e647db3db2166b65083a427d84ed3
tree287ba3124137234e1518208b57717d60aa9eb44b
parentef71ec00002d92a08eb27e9d036e3d48835b6597
bcache: Minor journal fix

The real fix is where we check the bytes we need against how much is
remaining - we also need to check for a journal entry bigger than our
buffer, we'll never write those and it would be bad if we tried to read
one.

Also improve the diagnostic messages.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/journal.c