]> Pileus Git - ~andy/linux/blobdiff - drivers/block/zram/zram_drv.h
zram: introduce zram->tb_lock
[~andy/linux] / drivers / block / zram / zram_drv.h
index 81b0170de369ed6b5a44e4d538b36f837f239255..c3f453f04974cd10c7473da6483b4cee69c1261f 100644 (file)
@@ -83,6 +83,7 @@ struct zram_stats {
 };
 
 struct zram_meta {
+       rwlock_t tb_lock;       /* protect table */
        void *compress_workmem;
        void *compress_buffer;
        struct table *table;
@@ -96,7 +97,7 @@ struct zram_slot_free {
 
 struct zram {
        struct zram_meta *meta;
-       struct rw_semaphore lock; /* protect compression buffers, table,
+       struct rw_semaphore lock; /* protect compression buffers,
                                   * reads and writes
                                   */