aboutsummaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2015-06-25 15:00:06 -0700
committerMister Oyster <oysterized@gmail.com>2017-09-25 20:39:47 +0200
commit82ff1345d3842045834cb51392d3e2e38a5baba6 (patch)
tree512143b07ae5036fb6a53801c59f42535366ffe2 /scripts/package
parent80927072afb660454c2e7f023387cb964a3a7c03 (diff)
zram: use idr instead of `zram_devices' array
This patch makes some preparations for on-demand device add/remove functionality. Remove `zram_devices' array and switch to id-to-pointer translation (idr). idr doesn't bloat zram struct with additional members, f.e. list_head, yet still provides ability to match the device_id with the device pointer. No user-space visible changes. [Julia.Lawall@lip6.fr: return -ENOMEM when `queue' alloc fails] Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Reported-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/package')
0 files changed, 0 insertions, 0 deletions