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>
此提交包含在:
@@ -200,8 +200,9 @@ struct journal_device {
|
||||
struct closure;
|
||||
struct cache_set;
|
||||
struct btree_op;
|
||||
struct keylist;
|
||||
|
||||
void bch_journal(struct closure *);
|
||||
atomic_t *bch_journal(struct cache_set *, struct keylist *, struct closure *);
|
||||
void bch_journal_next(struct journal *);
|
||||
void bch_journal_mark(struct cache_set *, struct list_head *);
|
||||
void bch_journal_meta(struct cache_set *, struct closure *);
|
||||
|
新增問題並參考
封鎖使用者