Home
last modified time | relevance | path

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

12

/Linux-v6.1/block/
Dbdev.c51 struct inode *inode = bdev->bd_inode; in bdev_write_inode()
70 struct address_space *mapping = bdev->bd_inode->i_mapping; in kill_bdev()
82 struct address_space *mapping = bdev->bd_inode->i_mapping; in invalidate_bdev()
110 truncate_inode_pages_range(bdev->bd_inode->i_mapping, lstart, lend); in truncate_bdev_range()
120 return invalidate_inode_pages2_range(bdev->bd_inode->i_mapping, in truncate_bdev_range()
128 loff_t size = i_size_read(bdev->bd_inode); in set_init_blocksize()
135 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in set_init_blocksize()
149 if (bdev->bd_inode->i_blkbits != blksize_bits(size)) { in set_blocksize()
151 bdev->bd_inode->i_blkbits = blksize_bits(size); in set_blocksize()
186 return filemap_flush(bdev->bd_inode->i_mapping); in sync_blockdev_nowait()
[all …]
Dfops.c434 struct inode *bd_inode = bdev_file_inode(file); in blkdev_llseek() local
437 inode_lock(bd_inode); in blkdev_llseek()
438 retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); in blkdev_llseek()
439 inode_unlock(bd_inode); in blkdev_llseek()
490 filp->f_mapping = bdev->bd_inode->i_mapping; in blkdev_open()
513 struct inode *bd_inode = bdev->bd_inode; in blkdev_write_iter() local
522 if (IS_SWAPFILE(bd_inode) && !is_hibernate_resume_dev(bd_inode->i_rdev)) in blkdev_write_iter()
Dioctl.c90 struct inode *inode = bdev->bd_inode; in blk_ioctl_discard()
144 filemap_invalidate_lock(bdev->bd_inode->i_mapping); in blk_ioctl_secure_erase()
149 filemap_invalidate_unlock(bdev->bd_inode->i_mapping); in blk_ioctl_secure_erase()
159 struct inode *inode = bdev->bd_inode; in blk_ioctl_zeroout()
Dgenhd.c63 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in set_capacity()
598 remove_inode_hash(disk->part0->bd_inode); in del_gendisk()
686 bdev->bd_inode->i_mapping->wb_err = 0; in invalidate_disk()
1181 iput(disk->part0->bd_inode); /* frees the disk */ in disk_release()
1400 iput(disk->part0->bd_inode); in __alloc_disk_node()
Dblk-zoned.c420 filemap_invalidate_lock(bdev->bd_inode->i_mapping); in blkdev_zone_mgmt_ioctl()
443 filemap_invalidate_unlock(bdev->bd_inode->i_mapping); in blkdev_zone_mgmt_ioctl()
/Linux-v6.1/drivers/mtd/devices/
Dblock2mtd.c58 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_erase()
120 page = page_read(dev->blkdev->bd_inode->i_mapping, index); in block2mtd_read()
142 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_write()
210 invalidate_mapping_pages(dev->blkdev->bd_inode->i_mapping, in block2mtd_free_device()
275 if ((long)dev->blkdev->bd_inode->i_size % erase_size) { in add_device()
293 dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK; in add_device()
/Linux-v6.1/block/partitions/
Dcore.c91 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in bdev_set_nr_sectors()
254 iput(dev_to_bdev(dev)->bd_inode); in part_release()
289 remove_inode_hash(part->bd_inode); in delete_partition()
709 struct address_space *mapping = state->disk->part0->bd_inode->i_mapping; in read_part_sector()
/Linux-v6.1/fs/
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()
929 struct inode *inode = bdev->bd_inode; in grow_dev_page()
1590 struct inode *bd_inode = bdev->bd_inode; in clean_bdev_aliases() local
1591 struct address_space *bd_mapping = bd_inode->i_mapping; in clean_bdev_aliases()
1593 pgoff_t index = block >> (PAGE_SHIFT - bd_inode->i_blkbits); in clean_bdev_aliases()
1599 end = (block + len - 1) >> (PAGE_SHIFT - bd_inode->i_blkbits); in clean_bdev_aliases()
/Linux-v6.1/drivers/scsi/
Dscsicam.c35 struct address_space *mapping = bdev_whole(dev)->bd_inode->i_mapping; in scsi_bios_ptable()
/Linux-v6.1/include/linux/
Dblk_types.h48 struct inode * bd_inode; /* will die */ member
Dblkdev.h209 return !inode_unhashed(disk->part0->bd_inode); in disk_live()
1362 return 1 << bdev->bd_inode->i_blkbits; in block_size()
/Linux-v6.1/fs/ext4/
Dext4_jbd2.c202 struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; in ext4_check_bdev_write_error()
Ddir.c195 sb->s_bdev->bd_inode->i_mapping, in ext4_readdir()
Dsuper.c446 struct inode *bd_inode = sb->s_bdev->bd_inode; in block_device_ejected() local
447 struct backing_dev_info *bdi = inode_to_bdi(bd_inode); in block_device_ejected()
5511 errseq_check_and_advance(&sb->s_bdev->bd_inode->i_mapping->wb_err, in __ext4_fill_super()
/Linux-v6.1/fs/erofs/
Ddata.c77 return erofs_bread(buf, sb->s_bdev->bd_inode, blkaddr, type); in erofs_read_metabuf()
/Linux-v6.1/drivers/s390/block/
Ddasd_ioctl.c223 block->gdp->part0->bd_inode->i_blkbits = in dasd_format()
/Linux-v6.1/fs/cramfs/
Dinode.c185 struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; in cramfs_blkdev_read()
/Linux-v6.1/drivers/block/xen-blkback/
Dxenbus.c107 invalidate_inode_pages2(blkif->vbd.bdev->bd_inode->i_mapping); in xen_update_blkif_status()
/Linux-v6.1/fs/btrfs/
Ddisk-io.c3901 struct address_space *mapping = bdev->bd_inode->i_mapping; in btrfs_read_dev_one_super()
3988 struct address_space *mapping = device->bdev->bd_inode->i_mapping; in write_dev_supers()
4107 page = find_get_page(device->bdev->bd_inode->i_mapping, in wait_dev_supers()
Dzoned.c116 struct address_space *mapping = bdev->bd_inode->i_mapping; in sb_write_pointer()
Dcheck-integrity.c711 struct address_space *mapping = superblock_bdev->bd_inode->i_mapping; in btrfsic_process_superblock_dev_mirror()
/Linux-v6.1/fs/gfs2/
Dops_fstype.c117 mapping->host = sb->s_bdev->bd_inode; in init_sbd()
Dglock.c1219 mapping->host = s->s_bdev->bd_inode; in gfs2_glock_get()
/Linux-v6.1/fs/jbd2/
Djournal.c1827 truncate_inode_pages_range(journal->j_dev->bd_inode->i_mapping, in __jbd2_journal_erase()
/Linux-v6.1/fs/nilfs2/
Dsegment.c2791 inode_attach_wb(nilfs->ns_bdev->bd_inode, NULL); in nilfs_attach_log_writer()

12