Re: [PATCH -next] zram: drop `init_done' zram member

2014-01-09 Thread Minchan Kim
Hello Sergey, On Thu, Jan 09, 2014 at 03:57:46PM +0300, Sergey Senozhatsky wrote: > 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 I

[PATCH -next] zram: drop `init_done' zram member

2014-01-09 Thread Sergey Senozhatsky
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 --- drivers/block/zram/zram_drv.c | 21 +++-- drivers/block/zram/zram_drv.h