diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2015-02-12 15:00:48 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 18:54:12 -0800 |
commit | ee98016010ae036a5b27300d83bd99ef3fd5776e (patch) | |
tree | baddea4a5c526ff632ebdf7eaed106cb25d5596b /mm/zpool.c | |
parent | 08eee69fcf6baea543a2b4d2a2fcba0e61aa3160 (diff) | |
download | lwn-ee98016010ae036a5b27300d83bd99ef3fd5776e.tar.gz lwn-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/zpool.c')
0 files changed, 0 insertions, 0 deletions