Home
last modified time | relevance | path

Searched refs:disksize (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.c68 return zram->disksize; in init_done()
121 bound = zram->disksize >> SECTOR_SHIFT; in valid_io_request()
198 return scnprintf(buf, PAGE_SIZE, "%llu\n", zram->disksize); in disksize_show()
244 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in idle_store()
576 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in writeback_store()
825 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in read_block_state()
1143 static void zram_meta_free(struct zram *zram, u64 disksize) in zram_meta_free() argument
1145 size_t num_pages = disksize >> PAGE_SHIFT; in zram_meta_free()
1159 static bool zram_meta_alloc(struct zram *zram, u64 disksize) in zram_meta_alloc() argument
1163 num_pages = disksize >> PAGE_SHIFT; in zram_meta_alloc()
[all …]
Dzram_drv.h129 u64 disksize; /* bytes */ member
/kernel/linux/build/test/moduletest/runtest/bin/
Denhancedswap_t_init.sh35 echo ${zram0_disksize} > /sys/block/zram0/disksize
58 zram0_disksize=$(cat /sys/block/zram0/disksize)
60 echo 512M > /sys/block/zram0/disksize
Dmem_debug_t_init.sh46 zram0_disksize=$(cat /sys/block/zram0/disksize)
48 echo 512M > /sys/block/zram0/disksize
Denhancedswap_t_uninit.sh30 echo ${zram0_disksize} > /sys/block/zram0/disksize
Dmem_debug_t_uninit.sh30 echo ${zram0_disksize} > /sys/block/zram0/disksize
/kernel/linux/linux-5.10/Documentation/admin-guide/blockdev/
Dzram.rst118 Set disk size by writing the value to sysfs node 'disksize'.
122 # Initialize /dev/zram0 with 50MB disksize
123 echo $((50*1024*1024)) > /sys/block/zram0/disksize
126 echo 256K > /sys/block/zram0/disksize
127 echo 512M > /sys/block/zram0/disksize
128 echo 1G > /sys/block/zram0/disksize
196 disksize RW show and set the device's disk size
302 resets the disksize to zero. You must set the disksize again
317 before disksize setting. It supports only partition at this moment.
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-block-zram1 What: /sys/block/zram<id>/disksize
5 The disksize file is read-write and specifies the disk size
/kernel/linux/linux-5.10/fs/ext4/
Dinode.c2481 loff_t disksize; in mpage_map_and_submit_extent() local
2540 disksize = ((loff_t)mpd->first_page) << PAGE_SHIFT; in mpage_map_and_submit_extent()
2541 if (disksize > READ_ONCE(EXT4_I(inode)->i_disksize)) { in mpage_map_and_submit_extent()
2547 if (disksize > i_size) in mpage_map_and_submit_extent()
2548 disksize = i_size; in mpage_map_and_submit_extent()
2549 if (disksize > EXT4_I(inode)->i_disksize) in mpage_map_and_submit_extent()
2550 EXT4_I(inode)->i_disksize = disksize; in mpage_map_and_submit_extent()