diff options
author | Sergey Senozhatsky | 2015-02-13 00:00:48 +0100 |
---|---|---|
committer | Linus Torvalds | 2015-02-13 03:54:12 +0100 |
commit | ee98016010ae036a5b27300d83bd99ef3fd5776e (patch) | |
tree | baddea4a5c526ff632ebdf7eaed106cb25d5596b /mm/zbud.c | |
parent | zram: remove init_lock in zram_make_request (diff) | |
download | kernel-qcow2-linux-ee98016010ae036a5b27300d83bd99ef3fd5776e.tar.gz kernel-qcow2-linux-ee98016010ae036a5b27300d83bd99ef3fd5776e.tar.xz kernel-qcow2-linux-ee98016010ae036a5b27300d83bd99ef3fd5776e.zip |
zram: remove request_queue from struct zram
`struct zram' contains both `struct gendisk' and `struct request_queue'.
the latter can be deleted, because zram->disk carries ->queue pointer, and
->queue carries zram pointer:
create_device()
zram->queue->queuedata = zram
zram->disk->queue = zram->queue
zram->disk->private_data = zram
so zram->queue is not needed, we can access all necessary data anyway.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zbud.c')
0 files changed, 0 insertions, 0 deletions