Searched defs:zram (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/block/zram/ |
| H A D | zram_drv.h | 121 struct zram { struct 122 struct zram_table_entry *table; argument 132 * the number of pages zram can consume for storing compressed data argument 136 struct zram_stats stats; argument 144 * zram is claimed so open request will be failed argument 146 bool claim; /* Protected by disk->open_mutex */ 148 struct file *backing_dev; 149 bool wb_limit_enable; 150 bool compressed_wb; 151 u32 wb_batch_size; [all …]
|
| H A D | zram_drv.c | 73 static __must_check bool slot_trylock(struct zram *zram, unsigned long index) in slot_trylock() 86 static void slot_lock(struct zram *zram, unsigned long index) in slot_lock() 95 static void slot_unlock(struct zram *zram, unsigned long index) in slot_unlock() 103 static inline bool init_done(struct zram *zram) in init_done() 113 static unsigned long get_slot_handle(struct zram *zram, unsigned long index) in get_slot_handle() 118 static void set_slot_handle(struct zram *zram, unsigned long index, in set_slot_handle() 124 static bool test_slot_flag(struct zram *zram, unsigned long index, in test_slot_flag() 130 static void set_slot_flag(struct zram *zram, unsigned long index, in set_slot_flag() 136 static void clear_slot_flag(struct zram *zram, unsigned long index, in clear_slot_flag() 142 static size_t get_slot_size(struct zram *zram, unsigned long index) in get_slot_size() [all …]
|