summaryrefslogtreecommitdiffstats
path: root/lib/test-kstrtox.c
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2016-12-16 17:55:56 +0100
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-14 03:44:01 +0100
commit7ad3d4d85c7af9632055a6ac0aa15b6b6a321c6b (patch)
tree1586a6c01ced64d24c67859d792140853b148d20 /lib/test-kstrtox.c
parentReimplement IDR and IDA using the radix tree (diff)
downloadlinux-7ad3d4d85c7af9632055a6ac0aa15b6b6a321c6b.tar.xz
linux-7ad3d4d85c7af9632055a6ac0aa15b6b6a321c6b.zip
ida: Move ida_bitmap to a percpu variable
When we preload the IDA, we allocate an IDA bitmap. Instead of storing that preallocated bitmap in the IDA, we store it in a percpu variable. Generally there are more IDAs in the system than CPUs, so this cuts down on the number of preallocated bitmaps that are unused, and about half of the IDA users did not call ida_destroy() so they were leaking IDA bitmaps. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'lib/test-kstrtox.c')
0 files changed, 0 insertions, 0 deletions