UPSTREAM: zram: introduce zram data accessor
authorMinchan Kim <minchan@kernel.org>
Wed, 3 May 2017 21:55:50 +0000 (14:55 -0700)
committerMichael Benedict <michaelbt@live.com>
Fri, 30 Aug 2019 07:41:53 +0000 (17:41 +1000)
commit4c7fbe872e79e05c86f9674bf3b99b501e9c6d70
tree5868133bb2613aa1aa62538f23855216911523b0
parent5a1bc5bcdac41bc51d256b5c01e86b3421fa440b
UPSTREAM: zram: introduce zram data accessor

With element, sometime I got confused handle and element access.  It
might be my bad but I think it's time to introduce accessor to prevent
future idiot like me.  This patch is just clean-up patch so it shouldn't
change any behavior.

Link: http://lkml.kernel.org/r/1492052365-16169-6-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 643ae61d0f41c48aa7179921fe15ba4b4d8ddfec)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I3916d5561ab9fb2917455cac74bee431fbe84b5d
drivers/block/zram/zram_drv.c