/kernel/linux/linux-6.6/drivers/block/zram/ |
H A D | zram_drv.c | 15 #define KMSG_COMPONENT "zram" 60 static void zram_free_page(struct zram *zram, size_t index); 61 static int zram_read_page(struct zram *zram, struct page *page, u32 index, 64 static inline bool init_done(struct zram *zram) in init_done() argument 66 return zram->disksize; in init_done() 69 static inline struct zram *dev_to_zram(struct device *dev) in dev_to_zram() 71 return (struct zram *)dev_to_dis in dev_to_zram() 74 zram_set_element(struct zram *zram, u32 index, unsigned long element) zram_set_element() argument 80 zram_get_element(struct zram *zram, u32 index) zram_get_element() argument 85 zram_allocated(struct zram *zram, u32 index) zram_allocated() argument 105 zram_set_priority(struct zram *zram, u32 index, u32 prio) zram_set_priority() argument 117 zram_get_priority(struct zram *zram, u32 index) zram_get_priority() argument 124 update_used_max(struct zram *zram, const unsigned long pages) update_used_max() argument 169 struct zram *zram = dev_to_zram(dev); initstate_show() local 181 struct zram *zram = dev_to_zram(dev); disksize_show() local 191 struct zram *zram = dev_to_zram(dev); mem_limit_store() local 209 struct zram *zram = dev_to_zram(dev); mem_used_max_store() local 229 mark_idle(struct zram *zram, ktime_t cutoff) mark_idle() argument 256 struct zram *zram = dev_to_zram(dev); idle_store() local 295 struct zram *zram = dev_to_zram(dev); writeback_limit_enable_store() local 316 struct zram *zram = dev_to_zram(dev); writeback_limit_enable_show() local 330 struct zram *zram = dev_to_zram(dev); writeback_limit_store() local 351 struct zram *zram = dev_to_zram(dev); writeback_limit_show() local 362 reset_bdev(struct zram *zram) reset_bdev() argument 384 struct zram *zram = dev_to_zram(dev); backing_dev_show() local 422 struct zram *zram = dev_to_zram(dev); backing_dev_store() local 501 alloc_block_bdev(struct zram *zram) alloc_block_bdev() argument 517 free_block_bdev(struct zram *zram, unsigned long blk_idx) free_block_bdev() argument 526 read_from_bdev_async(struct zram *zram, struct page *page, unsigned long entry, struct bio *parent) read_from_bdev_async() argument 545 struct zram *zram = dev_to_zram(dev); writeback_store() local 705 struct zram *zram; global() member 728 read_from_bdev_sync(struct zram *zram, struct page *page, unsigned long entry) read_from_bdev_sync() argument 745 read_from_bdev(struct zram *zram, struct page *page, unsigned long entry, struct bio *parent) read_from_bdev() argument 758 reset_bdev(struct zram *zram) reset_bdev() argument 759 read_from_bdev(struct zram *zram, struct page *page, unsigned long entry, struct bio *parent) read_from_bdev() argument 765 free_block_bdev(struct zram *zram, unsigned long blk_idx) free_block_bdev() argument 782 zram_accessed(struct zram *zram, u32 index) zram_accessed() argument 793 struct zram *zram = file->private_data; read_block_state() local 853 zram_debugfs_register(struct zram *zram) zram_debugfs_register() argument 864 zram_debugfs_unregister(struct zram *zram) zram_debugfs_unregister() argument 871 zram_accessed(struct zram *zram, u32 index) zram_accessed() argument 875 zram_debugfs_register(struct zram *zram) zram_debugfs_register() argument 876 zram_debugfs_unregister(struct zram *zram) zram_debugfs_unregister() argument 900 comp_algorithm_set(struct zram *zram, u32 prio, const char *alg) comp_algorithm_set() argument 909 __comp_algorithm_show(struct zram *zram, u32 prio, char *buf) __comp_algorithm_show() argument 920 __comp_algorithm_store(struct zram *zram, u32 prio, const char *buf) __comp_algorithm_store() argument 959 struct zram *zram = dev_to_zram(dev); comp_algorithm_show() local 969 struct zram *zram = dev_to_zram(dev); comp_algorithm_store() local 981 struct zram *zram = dev_to_zram(dev); recomp_algorithm_show() local 1001 struct zram *zram = dev_to_zram(dev); recomp_algorithm_store() local 1041 struct zram *zram = dev_to_zram(dev); compact_store() local 1058 struct zram *zram = dev_to_zram(dev); io_stat_show() local 1075 struct zram *zram = dev_to_zram(dev); mm_stat_show() local 1113 struct zram *zram = dev_to_zram(dev); bd_stat_show() local 1132 struct zram *zram = dev_to_zram(dev); debug_stat_show() local 1156 struct zram *zram = dev_to_zram(dev); group_show() local 1176 struct zram *zram = dev_to_zram(dev); group_store() local 1213 zram_meta_free(struct zram *zram, u64 disksize) zram_meta_free() argument 1229 zram_meta_alloc(struct zram *zram, u64 disksize) zram_meta_alloc() argument 1258 zram_free_page(struct zram *zram, size_t index) zram_free_page() argument 1318 zram_read_from_zspool(struct zram *zram, struct page *page, u32 index) zram_read_from_zspool() argument 1363 zram_read_page(struct zram *zram, struct page *page, u32 index, struct bio *parent) zram_read_page() argument 1409 zram_bvec_read_partial(struct zram *zram, struct bio_vec *bvec, u32 index, int offset) zram_bvec_read_partial() argument 1424 zram_bvec_read(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, struct bio *bio) zram_bvec_read() argument 1432 zram_write_page(struct zram *zram, struct page *page, u32 index) zram_write_page() argument 1563 zram_bvec_write_partial(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, struct bio *bio) zram_bvec_write_partial() argument 1581 zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, struct bio *bio) zram_bvec_write() argument 1597 zram_recompress(struct zram *zram, u32 index, struct page *page, u32 threshold, u32 prio, u32 prio_max) zram_recompress() argument 1737 struct zram *zram = dev_to_zram(dev); recompress_store() local 1857 zram_bio_discard(struct zram *zram, struct bio *bio) zram_bio_discard() argument 1894 zram_bio_read(struct zram *zram, struct bio *bio) zram_bio_read() argument 1925 zram_bio_write(struct zram *zram, struct bio *bio) zram_bio_write() argument 1960 struct zram *zram = bio->bi_bdev->bd_disk->private_data; zram_submit_bio() local 1982 struct zram *zram; zram_slot_free_notify() local 1996 zram_destroy_comps(struct zram *zram) zram_destroy_comps() argument 2011 zram_reset_device(struct zram *zram) zram_reset_device() argument 2041 struct zram *zram = dev_to_zram(dev); disksize_store() local 2096 struct zram *zram; reset_store() local 2133 struct zram *zram = disk->private_data; zram_open() local 2213 struct zram *zram; zram_add() local 2296 zram_remove(struct zram *zram) zram_remove() argument 2375 struct zram *zram; hot_remove_store() local [all...] |
H A D | zram_drv.h | 38 * footprint small and thus squeeze size and zram pageflags into a flags 43 * We use BUILD_BUG_ON() to make sure that zram pageflags don't overflow. 58 /* Flags for zram pages (table[page_no].flags) */ 60 /* zram slot is locked */ 100 atomic64_t huge_pages_since; /* no. of huge pages since zram set up */ 122 struct zram { struct 134 * the number of pages zram can consume for storing compressed data 147 * zram is claimed so open request will be failed 164 static inline int zram_slot_trylock(struct zram *zram, u3 argument 169 zram_slot_lock(struct zram *zram, u32 index) zram_slot_lock() argument 174 zram_slot_unlock(struct zram *zram, u32 index) zram_slot_unlock() argument 179 zram_get_handle(struct zram *zram, u32 index) zram_get_handle() argument 184 zram_set_handle(struct zram *zram, u32 index, unsigned long handle) zram_set_handle() argument 190 zram_test_flag(struct zram *zram, u32 index, enum zram_pageflags flag) zram_test_flag() argument 196 zram_set_flag(struct zram *zram, u32 index, enum zram_pageflags flag) zram_set_flag() argument 202 zram_clear_flag(struct zram *zram, u32 index, enum zram_pageflags flag) zram_clear_flag() argument 208 zram_get_obj_size(struct zram *zram, u32 index) zram_get_obj_size() argument 213 zram_set_obj_size(struct zram *zram, u32 index, size_t size) zram_set_obj_size() argument 233 zram_get_obj_size(struct zram *zram, u32 index) zram_get_obj_size() argument 238 zram_set_obj_size(struct zram *zram, u32 index, size_t size) zram_set_obj_size() argument [all...] |
H A D | Makefile | 2 zram-y := zcomp.o zram_drv.o 4 zram-$(CONFIG_ZRAM_GROUP) += zram_group/zram_group.o zram_group/zlist.o zram_group/group_writeback.o 6 obj-$(CONFIG_ZRAM) += zram.o 8 ccflags-$(CONFIG_ZRAM_GROUP) += -I$(srctree)/drivers/block/zram/zram_group/
|
/kernel/linux/linux-5.10/drivers/block/zram/ |
H A D | zram_drv.c | 15 #define KMSG_COMPONENT "zram" 62 static void zram_free_page(struct zram *zram, size_t index); 63 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, 66 static inline bool init_done(struct zram *zram) in init_done() argument 68 return zram->disksize; in init_done() 71 static inline struct zram *dev_to_zram(struct device *dev) in dev_to_zram() 73 return (struct zram *)dev_to_dis in dev_to_zram() 76 zram_set_element(struct zram *zram, u32 index, unsigned long element) zram_set_element() argument 82 zram_get_element(struct zram *zram, u32 index) zram_get_element() argument 87 zram_allocated(struct zram *zram, u32 index) zram_allocated() argument 109 valid_io_request(struct zram *zram, sector_t start, unsigned int size) valid_io_request() argument 136 update_used_max(struct zram *zram, const unsigned long pages) update_used_max() argument 184 struct zram *zram = dev_to_zram(dev); initstate_show() local 196 struct zram *zram = dev_to_zram(dev); disksize_show() local 206 struct zram *zram = dev_to_zram(dev); mem_limit_store() local 224 struct zram *zram = dev_to_zram(dev); mem_used_max_store() local 243 struct zram *zram = dev_to_zram(dev); idle_store() local 277 struct zram *zram = dev_to_zram(dev); writeback_limit_enable_store() local 298 struct zram *zram = dev_to_zram(dev); writeback_limit_enable_show() local 312 struct zram *zram = dev_to_zram(dev); writeback_limit_store() local 333 struct zram *zram = dev_to_zram(dev); writeback_limit_show() local 344 reset_bdev(struct zram *zram) reset_bdev() argument 369 struct zram *zram = dev_to_zram(dev); backing_dev_show() local 407 struct zram *zram = dev_to_zram(dev); backing_dev_store() local 504 alloc_block_bdev(struct zram *zram) alloc_block_bdev() argument 520 free_block_bdev(struct zram *zram, unsigned long blk_idx) free_block_bdev() argument 541 read_from_bdev_async(struct zram *zram, struct bio_vec *bvec, unsigned long entry, struct bio *parent) read_from_bdev_async() argument 575 struct zram *zram = dev_to_zram(dev); writeback_store() local 731 struct zram *zram; global() member 741 struct zram *zram = zw->zram; zram_sync_read() local 753 read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, unsigned long entry, struct bio *bio) read_from_bdev_sync() argument 771 read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, unsigned long entry, struct bio *bio) read_from_bdev_sync() argument 779 read_from_bdev(struct zram *zram, struct bio_vec *bvec, unsigned long entry, struct bio *parent, bool sync) read_from_bdev() argument 789 reset_bdev(struct zram *zram) reset_bdev() argument 790 read_from_bdev(struct zram *zram, struct bio_vec *bvec, unsigned long entry, struct bio *parent, bool sync) read_from_bdev() argument 796 free_block_bdev(struct zram *zram, unsigned long blk_idx) free_block_bdev() argument 813 zram_accessed(struct zram *zram, u32 index) zram_accessed() argument 824 struct zram *zram = file->private_data; read_block_state() local 881 zram_debugfs_register(struct zram *zram) zram_debugfs_register() argument 892 zram_debugfs_unregister(struct zram *zram) zram_debugfs_unregister() argument 899 zram_accessed(struct zram *zram, u32 index) zram_accessed() argument 903 zram_debugfs_register(struct zram *zram) zram_debugfs_register() argument 904 zram_debugfs_unregister(struct zram *zram) zram_debugfs_unregister() argument 932 struct zram *zram = dev_to_zram(dev); comp_algorithm_show() local 944 struct zram *zram = dev_to_zram(dev); comp_algorithm_store() local 972 struct zram *zram = dev_to_zram(dev); compact_store() local 989 struct zram *zram = dev_to_zram(dev); io_stat_show() local 1007 struct zram *zram = dev_to_zram(dev); mm_stat_show() local 1044 struct zram *zram = dev_to_zram(dev); bd_stat_show() local 1063 struct zram *zram = dev_to_zram(dev); debug_stat_show() local 1087 struct zram *zram = dev_to_zram(dev); group_show() local 1106 struct zram *zram = dev_to_zram(dev); group_store() local 1143 zram_meta_free(struct zram *zram, u64 disksize) zram_meta_free() argument 1159 zram_meta_alloc(struct zram *zram, u64 disksize) zram_meta_alloc() argument 1188 zram_free_page(struct zram *zram, size_t index) zram_free_page() argument 1239 __zram_bvec_read(struct zram *zram, struct page *page, u32 index, struct bio *bio, bool partial_io) __zram_bvec_read() argument 1315 zram_bvec_read(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, struct bio *bio) zram_bvec_read() argument 1348 __zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index, struct bio *bio) __zram_bvec_write() argument 1467 zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, struct bio *bio) zram_bvec_write() argument 1513 zram_bio_discard(struct zram *zram, u32 index, int offset, struct bio *bio) zram_bio_discard() argument 1551 zram_bvec_rw(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, unsigned int op, struct bio *bio) zram_bvec_rw() argument 1579 __zram_make_request(struct zram *zram, struct bio *bio) __zram_make_request() argument 1630 struct zram *zram = bio->bi_disk->private_data; zram_submit_bio() local 1649 struct zram *zram; zram_slot_free_notify() local 1668 struct zram *zram; zram_rw_page() local 1717 zram_reset_device(struct zram *zram) zram_reset_device() argument 1751 struct zram *zram = dev_to_zram(dev); disksize_store() local 1800 struct zram *zram; reset_store() local 1843 struct zram *zram; zram_open() local 1932 struct zram *zram; zram_add() local 2021 zram_remove(struct zram *zram) zram_remove() argument 2085 struct zram *zram; hot_remove_store() local [all...] |
H A D | zram_drv.h | 41 * zram is mainly used for memory efficiency so we want to keep memory 56 /* Flags for zram pages (table[page_no].flags) */ 58 /* zram slot is locked */ 108 struct zram { struct 120 * the number of pages zram can consume for storing compressed data 132 * zram is claimed so open request will be failed 150 static inline int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument 152 return bit_spin_trylock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_trylock() 155 static inline void zram_slot_lock(struct zram *zra argument 160 zram_slot_unlock(struct zram *zram, u32 index) zram_slot_unlock() argument 165 zram_get_handle(struct zram *zram, u32 index) zram_get_handle() argument 170 zram_set_handle(struct zram *zram, u32 index, unsigned long handle) zram_set_handle() argument 176 zram_test_flag(struct zram *zram, u32 index, enum zram_pageflags flag) zram_test_flag() argument 182 zram_set_flag(struct zram *zram, u32 index, enum zram_pageflags flag) zram_set_flag() argument 188 zram_clear_flag(struct zram *zram, u32 index, enum zram_pageflags flag) zram_clear_flag() argument 194 zram_get_obj_size(struct zram *zram, u32 index) zram_get_obj_size() argument 199 zram_set_obj_size(struct zram *zram, u32 index, size_t size) zram_set_obj_size() argument 219 zram_get_obj_size(struct zram *zram, u32 index) zram_get_obj_size() argument 224 zram_set_obj_size(struct zram *zram, u32 index, size_t size) zram_set_obj_size() argument [all...] |
H A D | Makefile | 2 zram-y := zcomp.o zram_drv.o 4 zram-$(CONFIG_ZRAM_GROUP) += zram_group/zram_group.o zram_group/zlist.o zram_group/group_writeback.o 6 obj-$(CONFIG_ZRAM) += zram.o 8 ccflags-$(CONFIG_ZRAM_GROUP) += -I$(srctree)/drivers/block/zram/zram_group/
|
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/ |
H A D | group_writeback.c | 3 * drivers/block/zram/zram_group/group_writeback.c 26 static u16 zram_get_memcg_id(struct zram *zram, u32 index) in zram_get_memcg_id() argument 28 return (zram->table[index].flags & ZRAM_GRPID_MASK) >> ZRAM_SIZE_SHIFT; in zram_get_memcg_id() 31 static void zram_set_memcg_id(struct zram *zram, u32 index, u16 gid) in zram_set_memcg_id() argument 33 unsigned long old = zram->table[index].flags & (~ZRAM_GRPID_MASK); in zram_set_memcg_id() 35 zram->table[index].flags = old | ((u64)gid << ZRAM_SIZE_SHIFT); in zram_set_memcg_id() 39 static bool obj_can_wb(struct zram *zram, u3 argument 107 move_obj_to_hpio(struct zram *zram, u32 index, u16 gid, struct hpio *hpio, u32 offset) move_obj_to_hpio() argument 149 move_obj_from_hpio(struct zram *zram, int index, struct hpio *hpio) move_obj_from_hpio() argument 198 move_extent_from_hpio(struct zram *zram, struct hpio *hpio) move_extent_from_hpio() argument 220 struct zram *zram; global() member 227 struct zram *zram = priv->zram; write_endio() local 243 collect_objs(struct zram *zram, u16 gid, struct hpio *hpio, u32 ext_size) collect_objs() argument 263 write_one_extent(struct zram *zram, u16 gid) write_one_extent() argument 321 struct zram *zram = priv->zram; read_endio() local 339 read_one_extent(struct zram *zram, u32 eid, u16 gid) read_one_extent() argument 372 read_one_obj_sync(struct zram *zram, u32 index) read_one_obj_sync() argument 441 read_group_objs(struct zram *zram, u16 gid, u64 req_size) read_group_objs() argument 466 write_group_objs(struct zram *zram, u16 gid, u64 req_size) write_group_objs() argument 500 zram_group_fault_obj(struct zram *zram, u32 index) zram_group_fault_obj() argument 522 zram_group_track_obj(struct zram *zram, u32 index, struct mem_cgroup *memcg) zram_group_track_obj() argument 544 zram_group_untrack_obj(struct zram *zram, u32 index) zram_group_untrack_obj() argument 591 group_debug(struct zram *zram, u32 op, u32 index, u32 gid) group_debug() argument 611 group_obj_stats(struct zram *zram, u16 gid, int type) group_obj_stats() argument 685 register_zram_group(struct zram *zram) register_zram_group() argument 703 unregister_zram_group(struct zram *zram) unregister_zram_group() argument 716 zram_group_init(struct zram *zram, u32 nr_obj) zram_group_init() argument 730 zram_group_deinit(struct zram *zram) zram_group_deinit() argument [all...] |
/kernel/linux/linux-6.6/drivers/block/zram/zram_group/ |
H A D | group_writeback.c | 3 * drivers/block/zram/zram_group/group_writeback.c 26 static u16 zram_get_memcg_id(struct zram *zram, u32 index) in zram_get_memcg_id() argument 28 return (zram->table[index].flags & ZRAM_GRPID_MASK) >> ZRAM_SIZE_SHIFT; in zram_get_memcg_id() 31 static void zram_set_memcg_id(struct zram *zram, u32 index, u16 gid) in zram_set_memcg_id() argument 33 unsigned long old = zram->table[index].flags & (~ZRAM_GRPID_MASK); in zram_set_memcg_id() 35 zram->table[index].flags = old | ((u64)gid << ZRAM_SIZE_SHIFT); in zram_set_memcg_id() 39 static bool obj_can_wb(struct zram *zram, u3 argument 107 move_obj_to_hpio(struct zram *zram, u32 index, u16 gid, struct hpio *hpio, u32 offset) move_obj_to_hpio() argument 149 move_obj_from_hpio(struct zram *zram, int index, struct hpio *hpio) move_obj_from_hpio() argument 198 move_extent_from_hpio(struct zram *zram, struct hpio *hpio) move_extent_from_hpio() argument 220 struct zram *zram; global() member 227 struct zram *zram = priv->zram; write_endio() local 243 collect_objs(struct zram *zram, u16 gid, struct hpio *hpio, u32 ext_size) collect_objs() argument 263 write_one_extent(struct zram *zram, u16 gid) write_one_extent() argument 321 struct zram *zram = priv->zram; read_endio() local 339 read_one_extent(struct zram *zram, u32 eid, u16 gid) read_one_extent() argument 372 read_one_obj_sync(struct zram *zram, u32 index) read_one_obj_sync() argument 441 read_group_objs(struct zram *zram, u16 gid, u64 req_size) read_group_objs() argument 466 write_group_objs(struct zram *zram, u16 gid, u64 req_size) write_group_objs() argument 500 zram_group_fault_obj(struct zram *zram, u32 index) zram_group_fault_obj() argument 522 zram_group_track_obj(struct zram *zram, u32 index, struct mem_cgroup *memcg) zram_group_track_obj() argument 544 zram_group_untrack_obj(struct zram *zram, u32 index) zram_group_untrack_obj() argument 591 group_debug(struct zram *zram, u32 op, u32 index, u32 gid) group_debug() argument 611 group_obj_stats(struct zram *zram, u16 gid, int type) group_obj_stats() argument 685 register_zram_group(struct zram *zram) register_zram_group() argument 703 unregister_zram_group(struct zram *zram) unregister_zram_group() argument 716 zram_group_init(struct zram *zram, u32 nr_obj) zram_group_init() argument 730 zram_group_deinit(struct zram *zram) zram_group_deinit() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/zram/ |
H A D | zram_lib.sh | 49 echo "zram cleanup" 52 swapoff /dev/zram$i 56 umount /dev/zram$i 60 echo 1 > /sys/block/zram${i}/reset 61 rm -rf zram$i 66 echo $i > /sys/class/zram-control/hot_remove 71 rmmod zram > /dev/null 2>&1 77 echo "create '$dev_num' zram device(s)" 79 # zram module loaded, new kernel 80 if [ -d "/sys/class/zram [all...] |
H A D | Makefile | 4 TEST_PROGS := zram.sh
|
H A D | zram01.sh | 5 # Test creates several zram devices with different filesystems on them. 16 # Test will create the following number of zram devices: 18 # This is a list of parameters for zram devices. 22 # The zram sysfs node 'disksize' value can be either in bytes, 37 echo "fill zram$i..." 40 dd conv=notrunc if=/dev/zero of=zram${i}/file \ 45 echo "zram$i can be filled with '$b' KB" 47 local mem_used_total=`awk '{print $3}' "/sys/block/zram$i/mm_stat"` 55 echo "zram compression ratio: $(echo "scale=2; $v / 100 " | bc):1: OK"
|
/kernel/linux/linux-6.6/tools/testing/selftests/zram/ |
H A D | zram_lib.sh | 49 echo "zram cleanup" 52 swapoff /dev/zram$i 56 umount /dev/zram$i 60 echo 1 > /sys/block/zram${i}/reset 61 rm -rf zram$i 66 echo $i > /sys/class/zram-control/hot_remove 71 rmmod zram > /dev/null 2>&1 77 echo "create '$dev_num' zram device(s)" 79 # zram module loaded, new kernel 80 if [ -d "/sys/class/zram [all...] |
H A D | Makefile | 4 TEST_PROGS := zram.sh
|
H A D | zram01.sh | 5 # Test creates several zram devices with different filesystems on them. 16 # Test will create the following number of zram devices: 18 # This is a list of parameters for zram devices. 22 # The zram sysfs node 'disksize' value can be either in bytes, 37 echo "fill zram$i..." 40 dd conv=notrunc if=/dev/zero of=zram${i}/file \ 45 echo "zram$i can be filled with '$b' KB" 47 local mem_used_total=`awk '{print $3}' "/sys/block/zram$i/mm_stat"` 55 echo "zram compression ratio: $(echo "scale=2; $v / 100 " | bc):1: OK"
|
/kernel/linux/linux-6.6/drivers/block/ |
H A D | Makefile | 35 obj-$(CONFIG_ZRAM) += zram/
|
/kernel/linux/linux-5.10/drivers/block/ |
H A D | Makefile | 39 obj-$(CONFIG_ZRAM) += zram/
|
/kernel/linux/linux-5.10/mm/ |
H A D | zswapd_control.c | 687 unsigned long zram; in memcg_eswap_info_show() local 702 zram = memcg_data_size(memcg, CACHE_SIZE) / SZ_1K; in memcg_eswap_info_show() 707 anon, file, zram, eswap); in memcg_eswap_info_show()
|
/kernel/linux/linux-6.6/mm/ |
H A D | zswapd_control.c | 688 unsigned long zram; in memcg_eswap_info_show() local 703 zram = memcg_data_size(memcg, CACHE_SIZE) / SZ_1K; in memcg_eswap_info_show() 708 anon, file, zram, eswap); in memcg_eswap_info_show()
|
/kernel/linux/linux-5.10/tools/testing/selftests/ |
H A D | Makefile | 70 TARGETS += zram
|
/kernel/linux/linux-6.6/tools/testing/selftests/ |
H A D | Makefile | 101 TARGETS += zram
|