Searched refs:disksize (Results 1 – 5 of 5) sorted by relevance
77 return zram->disksize; in init_done()236 return scnprintf(buf, PAGE_SIZE, "%llu\n", zram->disksize); in disksize_show()285 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in mark_idle()602 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in writeback_store()859 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in read_block_state()1218 static void zram_meta_free(struct zram *zram, u64 disksize) in zram_meta_free() argument1220 size_t num_pages = disksize >> PAGE_SHIFT; in zram_meta_free()1231 static bool zram_meta_alloc(struct zram *zram, u64 disksize) in zram_meta_alloc() argument1235 num_pages = disksize >> PAGE_SHIFT; in zram_meta_alloc()1715 unsigned long nr_pages = zram->disksize >> PAGE_SHIFT; in recompress_store()[all …]
123 u64 disksize; /* bytes */ member
118 Set disk size by writing the value to sysfs node 'disksize'.122 # Initialize /dev/zram0 with 50MB disksize123 echo $((50*1024*1024)) > /sys/block/zram0/disksize126 echo 256K > /sys/block/zram0/disksize127 echo 512M > /sys/block/zram0/disksize128 echo 1G > /sys/block/zram0/disksize196 disksize RW show and set the device's disk size303 resets the disksize to zero. You must set the disksize again318 before disksize setting. It supports only partitions at this moment.
1 What: /sys/block/zram<id>/disksize5 The disksize file is read-write and specifies the disk size
2214 loff_t disksize; in mpage_map_and_submit_extent() local2272 disksize = ((loff_t)mpd->first_page) << PAGE_SHIFT; in mpage_map_and_submit_extent()2273 if (disksize > READ_ONCE(EXT4_I(inode)->i_disksize)) { in mpage_map_and_submit_extent()2279 if (disksize > i_size) in mpage_map_and_submit_extent()2280 disksize = i_size; in mpage_map_and_submit_extent()2281 if (disksize > EXT4_I(inode)->i_disksize) in mpage_map_and_submit_extent()2282 EXT4_I(inode)->i_disksize = disksize; in mpage_map_and_submit_extent()