aboutsummaryrefslogtreecommitdiff
path: root/include/linux/zram_drv.h
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2014-04-07 15:38:00 -0700
committerMister Oyster <oysterized@gmail.com>2016-12-11 12:59:25 +0100
commitd0b96f0d7e20a89daf3fcc8e48825512c9d7e65f (patch)
treec5c6ad7345fa362eeb625a374de0650492e2b1c2 /include/linux/zram_drv.h
parent1807e61bd01d259452eb7dc7d0b14daef8c2b214 (diff)
downloadandroid_kernel_m2note-d0b96f0d7e20a89daf3fcc8e48825512c9d7e65f.tar.gz
zram: drop `init_done' struct zram member
Introduce init_done() helper function which allows us to drop `init_done' struct zram member. init_done() uses the fact that ->init_done == 1 equals to ->meta != NULL. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Acked-by: 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 'include/linux/zram_drv.h')
-rw-r--r--include/linux/zram_drv.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/zram_drv.h b/include/linux/zram_drv.h
index 5cbee6aee..074415704 100644
--- a/include/linux/zram_drv.h
+++ b/include/linux/zram_drv.h
@@ -95,7 +95,6 @@ struct zram {
struct zram_meta *meta;
struct request_queue *queue;
struct gendisk *disk;
- int init_done;
/* Prevent concurrent execution of device init, reset and R/W request */
struct rw_semaphore init_lock;
/*