aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/zram_drv.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/zram_drv.h b/include/linux/zram_drv.h
index bdbab8652..5cbee6aee 100644
--- a/include/linux/zram_drv.h
+++ b/include/linux/zram_drv.h
@@ -88,13 +88,11 @@ struct zram_meta {
void *compress_buffer;
struct table *table;
struct zs_pool *mem_pool;
+ struct mutex buffer_lock; /* protect compress buffers */
};
struct zram {
struct zram_meta *meta;
- struct rw_semaphore lock; /* protect compression buffers,
- * reads and writes
- */
struct request_queue *queue;
struct gendisk *disk;
int init_done;