bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc()
authorColy Li <colyli@suse.de>
Mon, 20 Nov 2023 05:25:02 +0000 (13:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 16:01:56 +0000 (17:01 +0100)
commit286918928ed7094d53e6fd08513e4a3f1a09f1d0
tree6c1a9e043f88a8d6a5f6741ec28f50f3ab9b75f6
parent665341724499addb5400202294eef513b0f5f5de
bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc()

[ Upstream commit 31f5b956a197d4ec25c8a07cb3a2ab69d0c0b82f ]

This patch adds code comments to bch_btree_node_get() and
__bch_btree_node_alloc() that NULL pointer will not be returned and it
is unnecessary to check NULL pointer by the callers of these routines.

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20231120052503.6122-10-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/bcache/btree.c