Home
last modified time | relevance | path

Searched refs:bdev_nr_bytes (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/block/
Dioctl.c113 if (start + len > bdev_nr_bytes(bdev)) in blk_ioctl_discard()
144 if (start + len > bdev_nr_bytes(bdev)) in blk_ioctl_secure_erase()
179 if (end >= (uint64_t)bdev_nr_bytes(bdev)) in blk_ioctl_zeroout()
616 return put_u64(argp, bdev_nr_bytes(bdev)); in blkdev_ioctl()
676 return put_u64(argp, bdev_nr_bytes(bdev)); in compat_blkdev_ioctl()
Dfops.c649 loff_t size = bdev_nr_bytes(bdev); in blkdev_write_iter()
696 loff_t size = bdev_nr_bytes(bdev); in blkdev_read_iter()
756 isize = bdev_nr_bytes(bdev); in blkdev_fallocate()
/linux-6.6.21/drivers/nvme/target/
Dio-cmd-bdev.c98 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_enable()
119 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_revalidate()
/linux-6.6.21/fs/xfs/
Dxfs_notify_failure.c211 ddev_end = ddev_start + bdev_nr_bytes(mp->m_ddev_targp->bt_bdev) - 1; in xfs_dax_notify_failure()
/linux-6.6.21/fs/nfs/blocklayout/
Ddev.c256 d->len = bdev_nr_bytes(d->bdev); in bl_parse_simple()
352 d->len = bdev_nr_bytes(d->bdev); in bl_parse_scsi()
/linux-6.6.21/fs/pstore/
Dblk.c225 bdev_nr_bytes(I_BDEV(psblk_file->f_mapping->host)); in __register_pstore_blk()
/linux-6.6.21/fs/jfs/
Dresize.c201 sbi->direct_inode->i_size = bdev_nr_bytes(sb->s_bdev); in jfs_extendfs()
Dsuper.c549 inode->i_size = bdev_nr_bytes(sb->s_bdev); in jfs_fill_super()
/linux-6.6.21/block/partitions/
Defi.c136 return div_u64(bdev_nr_bytes(disk->part0), in last_lba()
/linux-6.6.21/fs/squashfs/
Dsuper.c255 msblk->bytes_used > bdev_nr_bytes(sb->s_bdev)) in squashfs_fill_super()
/linux-6.6.21/drivers/md/
Ddm-log.c452 if (buf_size > bdev_nr_bytes(dev->bdev)) { in create_log_context()
Ddm-writecache.c2368 wc->memory_map_size = bdev_nr_bytes(wc->ssd_dev->bdev); in writecache_ctr()
/linux-6.6.21/fs/nilfs2/
Dthe_nilfs.c594 u64 sb2off, devsize = bdev_nr_bytes(nilfs->ns_bdev); in nilfs_load_super_block()
Dioctl.c1110 if (range[1] > bdev_nr_bytes(inode->i_sb->s_bdev)) in nilfs_ioctl_set_alloc_range()
Dsuper.c429 devsize = bdev_nr_bytes(sb->s_bdev); in nilfs_resize_fs()
/linux-6.6.21/fs/cramfs/
Dinode.c214 devsize = bdev_nr_bytes(sb->s_bdev) >> PAGE_SHIFT; in cramfs_blkdev_read()
/linux-6.6.21/drivers/target/
Dtarget_core_iblock.c242 div_u64(bdev_nr_bytes(ib_dev->ibd_bd), block_size) - 1; in iblock_get_blocks()
/linux-6.6.21/include/linux/
Dblkdev.h770 static inline loff_t bdev_nr_bytes(struct block_device *bdev) in bdev_nr_bytes() function
/linux-6.6.21/fs/btrfs/
Ddev-replace.c286 if (bdev_nr_bytes(bdev) < btrfs_device_get_total_bytes(srcdev)) { in btrfs_init_dev_replace_tgtdev()
Dioctl.c1172 new_size = bdev_nr_bytes(device->bdev); in btrfs_ioctl_resize()
1213 if (new_size > bdev_nr_bytes(device->bdev)) { in btrfs_ioctl_resize()
Dvolumes.c1310 if (bytenr + PAGE_SIZE >= bdev_nr_bytes(bdev)) in btrfs_read_disk_super()
2688 round_down(bdev_nr_bytes(bdev), fs_info->sectorsize); in btrfs_init_new_device()
7030 u64 max_total_bytes = bdev_nr_bytes(device->bdev); in read_one_dev()
Ddisk-io.c3681 if (bytenr + BTRFS_SUPER_INFO_SIZE >= bdev_nr_bytes(bdev)) in btrfs_read_dev_one_super()
/linux-6.6.21/fs/ntfs3/
Dsuper.c1196 bdev_nr_bytes(bdev), &boot2); in ntfs_fill_super()
/linux-6.6.21/fs/reiserfs/
Dsuper.c1981 if (bdev_nr_bytes(s->s_bdev) < sb_block_count(rs) * sb_blocksize(rs)) { in reiserfs_fill_super()
/linux-6.6.21/fs/
Dbuffer.c991 loff_t sz = bdev_nr_bytes(bdev); in blkdev_max_block()

12