Home
last modified time | relevance | path

Searched refs:bd_inode (Results 1 – 25 of 79) sorted by relevance

1234

/kernel/linux/linux-5.10/fs/
Dblock_dev.c59 struct inode *inode = bdev->bd_inode; in bdev_write_inode()
80 struct address_space *mapping = bdev->bd_inode->i_mapping; in kill_bdev()
92 struct address_space *mapping = bdev->bd_inode->i_mapping; in invalidate_bdev()
128 truncate_inode_pages_range(bdev->bd_inode->i_mapping, lstart, lend); in truncate_bdev_range()
138 return invalidate_inode_pages2_range(bdev->bd_inode->i_mapping, in truncate_bdev_range()
147 loff_t size = i_size_read(bdev->bd_inode); in set_init_blocksize()
154 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in set_init_blocksize()
168 if (bdev->bd_inode->i_blkbits != blksize_bits(size)) { in set_blocksize()
170 bdev->bd_inode->i_blkbits = blksize_bits(size); in set_blocksize()
529 return filemap_flush(bdev->bd_inode->i_mapping); in __sync_blockdev()
[all …]
Dsync.c88 filemap_fdatawrite(bdev->bd_inode->i_mapping); in fdatawrite_one_bdev()
98 filemap_fdatawait_keep_errors(bdev->bd_inode->i_mapping); in fdatawait_one_bdev()
Dbuffer.c191 struct inode *bd_inode = bdev->bd_inode; in __find_get_block_slow() local
192 struct address_space *bd_mapping = bd_inode->i_mapping; in __find_get_block_slow()
201 index = block >> (PAGE_SHIFT - bd_inode->i_blkbits); in __find_get_block_slow()
235 1 << bd_inode->i_blkbits); in __find_get_block_slow()
906 loff_t sz = i_size_read(bdev->bd_inode); in blkdev_max_block()
925 sector_t end_block = blkdev_max_block(I_BDEV(bdev->bd_inode), size); in init_page_buffers()
957 struct inode *inode = bdev->bd_inode; in grow_dev_page()
1608 struct inode *bd_inode = bdev->bd_inode; in clean_bdev_aliases() local
1609 struct address_space *bd_mapping = bd_inode->i_mapping; in clean_bdev_aliases()
1611 pgoff_t index = block >> (PAGE_SHIFT - bd_inode->i_blkbits); in clean_bdev_aliases()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/devices/
Dblock2mtd.c55 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_erase()
117 page = page_read(dev->blkdev->bd_inode->i_mapping, index); in block2mtd_read()
139 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_write()
207 invalidate_mapping_pages(dev->blkdev->bd_inode->i_mapping, in block2mtd_free_device()
272 if ((long)dev->blkdev->bd_inode->i_size % erase_size) { in add_device()
287 dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK; in add_device()
/kernel/linux/linux-5.10/fs/pstore/
Dblk.c300 file.f_mapping = bdev->bd_inode->i_mapping; in psblk_generic_blk_read()
302 file.f_inode = bdev->bd_inode; in psblk_generic_blk_read()
330 file.f_mapping = bdev->bd_inode->i_mapping; in psblk_generic_blk_write()
332 file.f_inode = bdev->bd_inode; in psblk_generic_blk_write()
338 inode_lock(bdev->bd_inode); in psblk_generic_blk_write()
342 inode_unlock(bdev->bd_inode); in psblk_generic_blk_write()
/kernel/linux/linux-5.10/block/
Dioctl.c143 if (start + len > i_size_read(bdev->bd_inode)) in blk_ioctl_discard()
175 if (end >= (uint64_t)i_size_read(bdev->bd_inode)) in blk_ioctl_zeroout()
610 size = i_size_read(bdev->bd_inode); in blkdev_ioctl()
621 return put_u64(argp, i_size_read(bdev->bd_inode)); in blkdev_ioctl()
681 size = i_size_read(bdev->bd_inode); in compat_blkdev_ioctl()
692 return put_u64(argp, i_size_read(bdev->bd_inode)); in compat_blkdev_ioctl()
/kernel/linux/linux-5.10/fs/udf/
Dlowlevel.c59 lblock = i_size_read(bdev->bd_inode) >> sb->s_blocksize_bits; in udf_get_last_block()
/kernel/linux/linux-5.10/block/partitions/
Daix.c80 if (!bdev || !bdev->bd_inode) in last_lba()
82 return (bdev->bd_inode->i_size >> 9) - 1ULL; in last_lba()
Defi.c136 if (!bdev || !bdev->bd_inode) in last_lba()
138 return div_u64(bdev->bd_inode->i_size, in last_lba()
590 sector_t total_sectors = i_size_read(state->bdev->bd_inode) >> 9; in find_valid_gpt()
Datari.c58 hd_size = state->bdev->bd_inode->i_size >> 9; in atari_partition()
Dcore.c353 remove_inode_hash(bdev->bd_inode); in delete_partition()
788 struct address_space *mapping = state->bdev->bd_inode->i_mapping; in read_part_sector()
Dacorn.c278 nr_sects = (state->bdev->bd_inode->i_size >> 9) - start_sect; in adfspart_check_ADFS()
/kernel/linux/linux-5.10/drivers/char/
Draw.c90 filp->f_mapping = bdev->bd_inode->i_mapping; in raw_open()
93 bdev->bd_inode->i_mapping; in raw_open()
/kernel/linux/linux-5.10/fs/jfs/
Dresize.c89 VolumeSize = i_size_read(sb->s_bdev->bd_inode) >> sb->s_blocksize_bits; in jfs_extendfs()
202 sbi->direct_inode->i_size = i_size_read(sb->s_bdev->bd_inode); in jfs_extendfs()
/kernel/linux/linux-5.10/drivers/md/
Ddm-exception-store.h171 return i_size_read(bdev->bd_inode) >> SECTOR_SHIFT; in get_dev_size()
Ddm-dust.c418 sector_t size = i_size_read(dd->dev->bdev->bd_inode) >> SECTOR_SHIFT; in dust_message()
544 ti->len != i_size_read(dev->bdev->bd_inode) >> SECTOR_SHIFT) in dust_prepare_ioctl()
Ddm-linear.c133 ti->len != i_size_read(dev->bdev->bd_inode) >> SECTOR_SHIFT) in linear_prepare_ioctl()
/kernel/linux/linux-5.10/drivers/scsi/
Dscsicam.c35 struct address_space *mapping = dev->bd_contains->bd_inode->i_mapping; in scsi_bios_ptable()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c81 ns->size = i_size_read(ns->bdev->bd_inode); in nvmet_bdev_ns_enable()
102 ns->size = i_size_read(ns->bdev->bd_inode); in nvmet_bdev_ns_revalidate()
/kernel/linux/linux-5.10/fs/hfsplus/
Dwrapper.c134 *size = i_size_read(sb->s_bdev->bd_inode) >> 9; in hfsplus_get_last_session()
/kernel/linux/linux-5.10/include/linux/
Dblk_types.h25 struct inode * bd_inode; /* will die */ member
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Ddev.c255 d->len = i_size_read(d->bdev->bd_inode); in bl_parse_simple()
370 d->len = i_size_read(d->bdev->bd_inode); in bl_parse_scsi()
/kernel/linux/linux-5.10/fs/erofs/
Ddata.c37 struct address_space *const mapping = sb->s_bdev->bd_inode->i_mapping; in erofs_get_meta_page()
/kernel/linux/linux-5.10/fs/ext4/
Dext4_jbd2.c202 struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; in ext4_check_bdev_write_error()
/kernel/linux/linux-5.10/drivers/block/
Dloop.c1246 bdev->bd_inode->i_mapping->wb_err = 0; in __loop_clr_fd()
1379 if (size_changed && lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_status()
1384 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_status()
1625 if (lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_block_size()
1629 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_block_size()

1234