• Kent Overstreet's avatar
    bcache: Minor journal fix · b3fa7e77
    Kent Overstreet authored
    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: default avatarKent Overstreet <kmo@daterainc.com>
    b3fa7e77
journal.c 18 KB