zram: zram memory size limitation
[firefly-linux-kernel-4.4.55.git] / drivers / block / zram / zram_drv.h
index e0f725c87cc617b4ade4c7574c18fa6ce15ca828..b7aa9c21553f8edf83045fe7b468f989c3798464 100644 (file)
@@ -112,6 +112,11 @@ struct zram {
        u64 disksize;   /* bytes */
        int max_comp_streams;
        struct zram_stats stats;
+       /*
+        * the number of pages zram can consume for storing compressed data
+        */
+       unsigned long limit_pages;
+
        char compressor[10];
 };
 #endif