summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2019-06-28 14:59:34 +0300
committerJens Axboe <axboe@kernel.dk>2019-06-28 16:39:15 +0300
commitbd9026c8a7f33ebe25543b7b7e6276b49db60f7e (patch)
tree23c4eaad851f7d8cce2ef36b79248abff98bac9d /tools/perf/scripts/python/exported-sql-viewer.py
parent0b13efecf5f25ce5e31f2ab3930335015cb65a7d (diff)
downloadlinux-bd9026c8a7f33ebe25543b7b7e6276b49db60f7e.tar.xz
bcache: remove unncessary code in bch_btree_keys_init()
Function bch_btree_keys_init() initializes b->set[].size and b->set[].data to zero. As the code comments indicates, these code indeed is unncessary, because both struct btree_keys and struct bset_tree are nested embedded into struct btree, when struct btree is filled with 0 bits by kzalloc() in mca_bucket_alloc(), b->set[].size and b->set[].data are initialized to 0 (a.k.a NULL) already. This patch removes the redundant code, and add comments in bch_btree_keys_init() and mca_bucket_alloc() to explain why it's safe. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions