bcache: Refactor journalling flow control
authorKent Overstreet <kmo@daterainc.com>
Fri, 25 Oct 2013 00:07:04 +0000 (17:07 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 11 Nov 2013 05:56:02 +0000 (21:56 -0800)
commita34a8bfd4e6358c646928320d37b0425c0762f8a
tree650dd57be0460f439551baca3514009b4287bb12
parentcdd972b164be8fc69f6ee8533c5a07b621da74c7
bcache: Refactor journalling flow control

Making things less asynchronous that don't need to be - bch_journal()
only has to block when the journal or journal entry is full, which is
emphatically not a fast path. So make it a normal function that just
returns when it finishes, to make the code and control flow easier to
follow.

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