Home
last modified time | relevance | path

Searched defs:zram (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/drivers/block/zram/
Dzram_drv.h103 struct zram { struct
104 struct zram_table_entry *table; argument
112 * the number of pages zram can consume for storing compressed data argument
116 struct zram_stats stats; argument
125 * zram is claimed so open request will be failed argument
127 bool claim; /* Protected by disk->open_mutex */
129 struct file *backing_dev;
130 spinlock_t wb_limit_lock;
131 bool wb_limit_enable;
132 u64 bd_wb_limit;
[all …]
Dzram_drv.c63 #define slot_dep_map(zram, index) (&(zram)->table[(index)].dep_map) argument
65 static void zram_slot_lock_init(struct zram *zram, u32 index) in zram_slot_lock_init()
85 static __must_check bool zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock()
98 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock()
107 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock()
115 static inline bool init_done(struct zram *zram) in init_done()
125 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle()
130 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle()
135 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag()
141 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag()
[all …]