From: Joe Thornber Date: Sat, 9 Nov 2013 11:12:51 +0000 (+0000) Subject: dm cache policy mq: reduce memory requirements X-Git-Tag: v3.13-rc1~97^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633618e3353f8953e43d989d08302f5dcd51d8be;p=pandora-kernel.git 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 Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed