]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm space map disk: cache a small number of index entries
authorJoe Thornber <ejt@redhat.com>
Tue, 13 Apr 2021 12:09:32 +0000 (13:09 +0100)
committerMike Snitzer <snitzer@redhat.com>
Wed, 26 May 2021 20:18:30 +0000 (16:18 -0400)
commit2fe9dd8694d6b621f5812d9b5cc63c0c23244fd7
treed2175c1a579f46ba3e71e27b97ce2293181e975f
parentd9571f9e26265935b3c7cf3824bd4ed2f13f0219
dm space map disk: cache a small number of index entries

The disk space map stores it's index entries in a btree, these are
accessed very frequently, so having a few cached makes a big difference
to performance.

With this change provisioning a new block takes roughly 20% less cpu.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-space-map-common.c
drivers/md/persistent-data/dm-space-map-common.h