bcache: add code comments in bch_btree_leaf_dirty()
authorColy Li <colyli@suse.de>
Wed, 13 Nov 2019 08:03:22 +0000 (16:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2019 22:42:50 +0000 (15:42 -0700)
commit5dccefd3ea0b33cf3e5a45cbccc7e0bf22791655
treeac6e1c64a1899967193bed81559b31838d4f5b9a
parent84c529aea182939e68f618ed9813740c9165c7eb
bcache: add code comments in bch_btree_leaf_dirty()

This patch adds code comments in bch_btree_leaf_dirty() to explain
why w->journal should always reference the eldest journal pin of
all the writing bkeys in the btree node. To make the bcache journal
code to be easier to be understood.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c