Searched defs:zram (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/drivers/block/zram/ |
D | zram_drv.h | 92 struct zram { struct 93 struct zram_table_entry *table; argument 100 * the number of pages zram can consume for storing compressed data argument 104 struct zram_stats stats; argument 112 * zram is claimed so open request will be failed argument 114 bool claim; /* Protected by bdev->bd_mutex */ 115 struct file *backing_dev; 117 spinlock_t wb_limit_lock; 118 bool wb_limit_enable; 119 u64 bd_wb_limit; [all …]
|
D | zram_drv.c | 63 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() 68 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() 73 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() 78 static inline bool init_done(struct zram *zram) in init_done() 88 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle() 93 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle() 99 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag() 105 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag() 111 static void zram_clear_flag(struct zram *zram, u32 index, in zram_clear_flag() 117 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element() [all …]
|