zram: drop `init_done' struct zram member
(cherry pick from commit be2d1d56c82d8cf20e6c77515eb499f8e86eb5be) 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> Bug: 24810447 Change-Id: Id59b264680627e7c8fb6966f2e115acbb15c5ffe
Loading
Please register or sign in to comment