From: Coly Li Date: Wed, 13 Nov 2019 08:03:20 +0000 (+0800) Subject: bcache: add code comment bch_keylist_pop() and bch_keylist_pop_front() X-Git-Tag: v5.15~5119^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06c1526da97dd0022973de3fc41b79b2d431b435;p=platform%2Fkernel%2Flinux-starfive.git bcache: add code comment bch_keylist_pop() and bch_keylist_pop_front() This patch adds simple code comments for bch_keylist_pop() and bch_keylist_pop_front() in bset.c, to make the code more easier to be understand. Signed-off-by: Coly Li Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c index 0876879..f37a429 100644 --- a/drivers/md/bcache/bset.c +++ b/drivers/md/bcache/bset.c @@ -155,6 +155,7 @@ int __bch_keylist_realloc(struct keylist *l, unsigned int u64s) return 0; } +/* Pop the top key of keylist by pointing l->top to its previous key */ struct bkey *bch_keylist_pop(struct keylist *l) { struct bkey *k = l->keys; @@ -168,6 +169,7 @@ struct bkey *bch_keylist_pop(struct keylist *l) return l->top = k; } +/* Pop the bottom key of keylist and update l->top_p */ void bch_keylist_pop_front(struct keylist *l) { l->top_p -= bkey_u64s(l->keys);