summaryrefslogtreecommitdiff
path: root/Documentation/blockdev
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2015-06-26 01:00:06 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 03:00:36 +0300
commit85508ec6cbc21645927b6ac05e3b2748119a3e23 (patch)
tree77eaa8003f4dd6f2aad867c5c54337ee9acc909d /Documentation/blockdev
parent3bca3ef7694166b86c91b515818cc5acecd357a7 (diff)
downloadlinux-85508ec6cbc21645927b6ac05e3b2748119a3e23.tar.xz
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 'Documentation/blockdev')
0 files changed, 0 insertions, 0 deletions