aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/zram_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/zram_drv.h b/include/linux/zram_drv.h
index afe9a3e73..c89878172 100644
--- a/include/linux/zram_drv.h
+++ b/include/linux/zram_drv.h
@@ -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
*/