From: Joe Thornber Date: Fri, 9 Aug 2013 12:04:56 +0000 (+0100) Subject: dm space map: optimise sm_ll_dec and sm_ll_inc X-Git-Tag: v3.12-rc1~70^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f722063ee01c0060488e1000006405449451cfa0;p=pandora-kernel.git dm space map: optimise sm_ll_dec and sm_ll_inc Prior to this patch these methods did a lookup followed by an insert. Instead they now call a common mutate function that adjusts the value according to a callback function. This avoids traversing the data structures twice and hence improves performance. Also factor out sm_ll_lookup_big_ref_count() for use by both sm_ll_lookup() and sm_ll_mutate(). Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed