Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/zram/
Dzram.txt27 Set disk size by writing the value to sysfs node 'disksize'
28 (in bytes). If disksize is not given, default value of 25%
31 # Initialize /dev/zram0 with 50MB disksize
32 echo $((50*1024*1024)) > /sys/block/zram0/disksize
34 NOTE: disksize cannot be changed if the disk contains any
36 before you can change its disksize.
48 disksize
Dzram_sysfs.c51 return sprintf(buf, "%llu\n", zram->disksize); in disksize_show()
65 ret = strict_strtoull(buf, 10, &zram->disksize); in disksize_store()
69 zram->disksize = PAGE_ALIGN(zram->disksize); in disksize_store()
70 set_capacity(zram->disk, zram->disksize >> SECTOR_SHIFT); in disksize_store()
191 static DEVICE_ATTR(disksize, S_IRUGO | S_IWUSR,
Dzram_drv.c109 if (!zram->disksize) { in zram_set_disksize()
115 zram->disksize = default_disksize_perc_ram * in zram_set_disksize()
119 if (zram->disksize > 2 * (totalram_bytes)) { in zram_set_disksize()
129 totalram_bytes >> 10, zram->disksize in zram_set_disksize()
133 zram->disksize &= PAGE_MASK; in zram_set_disksize()
414 (bio->bi_sector >= (zram->disksize >> SECTOR_SHIFT)) || in valid_io_request()
471 for (index = 0; index < zram->disksize >> PAGE_SHIFT; index++) { in zram_reset_device()
496 zram->disksize = 0; in zram_reset_device()
528 num_pages = zram->disksize >> PAGE_SHIFT; in zram_init_device()
533 zram->disksize = 0; in zram_init_device()
[all …]
Dzram_drv.h118 u64 disksize; /* bytes */ member
/linux-2.6.39/Documentation/ABI/testing/
Dsysfs-block-zram1 What: /sys/block/zram<id>/disksize
5 The disksize file is read-write and specifies the disk size
13 The disksize file is read-only and shows the initialization
20 The disksize file is write-only and allows resetting the
/linux-2.6.39/fs/gfs2/
Ddir.c281 u64 disksize = i_size_read(&ip->i_inode); in gfs2_dir_read_data() local
283 if (offset >= disksize) in gfs2_dir_read_data()
286 if (offset + size > disksize) in gfs2_dir_read_data()
287 size = disksize - offset; in gfs2_dir_read_data()
1064 u64 disksize = i_size_read(&dip->i_inode); in dir_double_exhash() local
1069 if (hsize * sizeof(u64) != disksize) { in dir_double_exhash()
1080 for (block = disksize >> sdp->sd_hash_bsize_shift; block--;) { in dir_double_exhash()
/linux-2.6.39/fs/ext4/
Dinode.c2233 loff_t disksize = EXT4_I(mpd->inode)->i_disksize; in mpage_da_map_and_submit() local
2341 disksize = ((loff_t) next + blks) << mpd->inode->i_blkbits; in mpage_da_map_and_submit()
2342 if (disksize > i_size_read(mpd->inode)) in mpage_da_map_and_submit()
2343 disksize = i_size_read(mpd->inode); in mpage_da_map_and_submit()
2344 if (disksize > EXT4_I(mpd->inode)->i_disksize) { in mpage_da_map_and_submit()
2345 ext4_update_i_disksize(mpd->inode, disksize); in mpage_da_map_and_submit()