diff options
author | Tejun Heo <tj@kernel.org> | 2013-02-28 05:05:06 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 07:10:20 +0400 |
commit | 050a6b47d98e2bcea909c1129111e721668aaa2c (patch) | |
tree | 129480e1dd2b1e8d4129239ec508f7927f4d4b5a /lib | |
parent | 1d9b2e1e663719d406e3a770979a19ba4233bba0 (diff) | |
download | linux-050a6b47d98e2bcea909c1129111e721668aaa2c.tar.xz |
idr: make idr_layer larger
With recent preloading changes, idr no longer keeps full layer cache per
each idr instance (used to be ~6.5k per idr on 64bit) and the previous
patch removed restriction on the bitmap size. Both now allow us to have
larger layers.
Increase IDR_BITS to 8 regardless of BITS_PER_LONG. Each layer is
slightly larger than 2k on 64bit and 1k on 32bit and carries 256 entries.
The size isn't too large, especially compared to what we used to waste on
per-idr caches, and 256 entries should be able to serve most use cases
with single layer. The max tree depth is 4 which is much better than the
previous 6 on 64bit and 7 on 32bit.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions