]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bcache: Refactor journalling flow control
authorKent Overstreet <kmo@daterainc.com>
Thu, 25 Jul 2013 00:26:39 +0000 (17:26 -0700)
committerKent Overstreet <kmo@daterainc.com>
Wed, 11 Sep 2013 01:47:52 +0000 (18:47 -0700)
commit419cf7f0cc4e32268ef8272269598b4f705c3757
tree20b41cee27ea50a2941a332bdc726368682b06c4
parente1babbd1ad6506441bfd0f42c5491c891cf8a515
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