summaryrefslogtreecommitdiffstats
path: root/block/partitions/Makefile
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2013-11-09 11:12:51 +0000
committerMike Snitzer <snitzer@redhat.com>2013-11-11 11:37:50 -0500
commit633618e3353f8953e43d989d08302f5dcd51d8be (patch)
tree6a9de60cb6e659fd14216e3bd49689441070efbf /block/partitions/Makefile
parent53d498198d3e8bce4287112beafc30befcba98cc (diff)
downloadlinux-633618e3353f8953e43d989d08302f5dcd51d8be.tar.gz
linux-633618e3353f8953e43d989d08302f5dcd51d8be.tar.bz2
linux-633618e3353f8953e43d989d08302f5dcd51d8be.zip
dm cache policy mq: reduce memory requirements
Rather than storing the cblock in each cache entry, we allocate all entries in an array and infer the cblock from the entry position. Saves 4 bytes of memory per cache block. In addition, this gives us an easy way of looking up cache entries by cblock. We no longer need to keep an explicit bitset to track which cblocks have been allocated. And no searching is needed to find free cblocks. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'block/partitions/Makefile')
0 files changed, 0 insertions, 0 deletions