UPSTREAM: zram: use zram_slot_lock instead of raw bit_spin_lock op
authorMinchan Kim <minchan@kernel.org>
Wed, 3 May 2017 21:55:44 +0000 (14:55 -0700)
committerMichael Benedict <michaelbt@live.com>
Fri, 30 Aug 2019 07:41:50 +0000 (17:41 +1000)
commit7fdf3a5ed2f2ee7a9201f5405434f8a8ca6d2027
treefcc017a4d687608f26d18129cb29559e2c126ddb
parentbc0b5d11ece3d02d4c15b4ad2fe5ecec22bef4e4
UPSTREAM: zram: use zram_slot_lock instead of raw bit_spin_lock op

With this clean-up phase, I want to use zram's wrapper function to lock
table access which is more consistent with other zram's functions.

Link: http://lkml.kernel.org/r/1492052365-16169-4-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 86c49814d449ebc51c7d455ac8e3d17b9fa702eb)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I6afee89dce63dff6d759c78e25926814fc016107
drivers/block/zram/zram_drv.c