Searched refs:bd_inode (Results 1 – 8 of 8) sorted by relevance
/block/ |
D | fops.c | 411 struct inode *bd_inode = bdev_file_inode(file); in blkdev_llseek() local 414 inode_lock(bd_inode); in blkdev_llseek() 415 retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); in blkdev_llseek() 416 inode_unlock(bd_inode); in blkdev_llseek() 423 struct inode *bd_inode = bdev_file_inode(filp); in blkdev_fsync() local 424 struct block_device *bdev = I_BDEV(bd_inode); in blkdev_fsync() 466 filp->f_mapping = bdev->bd_inode->i_mapping; in blkdev_open() 506 struct inode *bd_inode = bdev_file_inode(file); in blkdev_write_iter() local 507 loff_t size = i_size_read(bd_inode); in blkdev_write_iter() 512 if (bdev_read_only(I_BDEV(bd_inode))) in blkdev_write_iter() [all …]
|
D | bdev.c | 50 struct inode *inode = bdev->bd_inode; in bdev_write_inode() 71 struct address_space *mapping = bdev->bd_inode->i_mapping; in kill_bdev() 83 struct address_space *mapping = bdev->bd_inode->i_mapping; in invalidate_bdev() 115 truncate_inode_pages_range(bdev->bd_inode->i_mapping, lstart, lend); in truncate_bdev_range() 125 return invalidate_inode_pages2_range(bdev->bd_inode->i_mapping, in truncate_bdev_range() 133 loff_t size = i_size_read(bdev->bd_inode); in set_init_blocksize() 140 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in set_init_blocksize() 154 if (bdev->bd_inode->i_blkbits != blksize_bits(size)) { in set_blocksize() 156 bdev->bd_inode->i_blkbits = blksize_bits(size); in set_blocksize() 191 return filemap_flush(bdev->bd_inode->i_mapping); in sync_blockdev_nowait() [all …]
|
D | ioctl.c | 119 struct inode *inode = bdev->bd_inode; in blk_ioctl_discard() 139 if (start + len > i_size_read(bdev->bd_inode)) in blk_ioctl_discard() 160 struct inode *inode = bdev->bd_inode; in blk_ioctl_zeroout() 177 if (end >= (uint64_t)i_size_read(bdev->bd_inode)) in blk_ioctl_zeroout() 578 size = i_size_read(bdev->bd_inode); in blkdev_ioctl() 589 return put_u64(argp, i_size_read(bdev->bd_inode)); in blkdev_ioctl() 650 size = i_size_read(bdev->bd_inode); in compat_blkdev_ioctl() 661 return put_u64(argp, i_size_read(bdev->bd_inode)); in compat_blkdev_ioctl()
|
D | blk-zoned.c | 425 filemap_invalidate_lock(bdev->bd_inode->i_mapping); in blkdev_zone_mgmt_ioctl() 448 filemap_invalidate_unlock(bdev->bd_inode->i_mapping); in blkdev_zone_mgmt_ioctl()
|
D | genhd.c | 60 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in set_capacity() 599 remove_inode_hash(disk->part0->bd_inode); in del_gendisk() 1118 iput(disk->part0->bd_inode); /* frees the disk */ in disk_release() 1325 iput(disk->part0->bd_inode); in __alloc_disk_node()
|
/block/partitions/ |
D | core.c | 93 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in bdev_set_nr_sectors() 264 iput(dev_to_bdev(dev)->bd_inode); in part_release() 299 remove_inode_hash(part->bd_inode); in delete_partition() 721 struct address_space *mapping = state->disk->part0->bd_inode->i_mapping; in read_part_sector()
|
D | ibm.c | 311 i_size = i_size_read(bdev->bd_inode); in ibm_partition()
|
D | efi.c | 136 return div_u64(disk->part0->bd_inode->i_size, in last_lba()
|