projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zram: zram memory size limitation
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
block
/
zram
/
zram_drv.h
diff --git
a/drivers/block/zram/zram_drv.h
b/drivers/block/zram/zram_drv.h
index e0f725c87cc617b4ade4c7574c18fa6ce15ca828..b7aa9c21553f8edf83045fe7b468f989c3798464 100644
(file)
--- a/
drivers/block/zram/zram_drv.h
+++ b/
drivers/block/zram/zram_drv.h
@@
-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