Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/block/
A 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()
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()
419 bdev->bd_inode = inode; in bdev_alloc()
433 bdev->bd_inode->i_rdev = dev; in bdev_add()
434 bdev->bd_inode->i_ino = dev; in bdev_add()
[all …]
A Dfops.c442 struct inode *bd_inode = bdev_file_inode(file); in blkdev_llseek() local
445 inode_lock(bd_inode); in blkdev_llseek()
446 retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); in blkdev_llseek()
447 inode_unlock(bd_inode); in blkdev_llseek()
498 filp->f_mapping = bdev->bd_inode->i_mapping; in blkdev_open()
521 struct inode *bd_inode = bdev->bd_inode; in blkdev_write_iter() local
530 if (IS_SWAPFILE(bd_inode) && !is_hibernate_resume_dev(bd_inode->i_rdev)) in blkdev_write_iter()
A 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()
A Dgenhd.c63 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in set_capacity()
622 remove_inode_hash(disk->part0->bd_inode); in del_gendisk()
713 bdev->bd_inode->i_mapping->wb_err = 0; in invalidate_disk()
1207 iput(disk->part0->bd_inode); /* frees the disk */ in disk_release()
1426 iput(disk->part0->bd_inode); in __alloc_disk_node()
A Dblk-zoned.c410 filemap_invalidate_lock(bdev->bd_inode->i_mapping); in blkdev_zone_mgmt_ioctl()
433 filemap_invalidate_unlock(bdev->bd_inode->i_mapping); in blkdev_zone_mgmt_ioctl()
/linux-6.3-rc2/drivers/mtd/devices/
A 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-6.3-rc2/block/partitions/
A 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-6.3-rc2/fs/
A Dbuffer.c192 struct inode *bd_inode = bdev->bd_inode; in __find_get_block_slow() local
193 struct address_space *bd_mapping = bd_inode->i_mapping; in __find_get_block_slow()
202 index = block >> (PAGE_SHIFT - bd_inode->i_blkbits); in __find_get_block_slow()
236 1 << bd_inode->i_blkbits); in __find_get_block_slow()
972 struct inode *inode = bdev->bd_inode; in grow_dev_page()
1633 struct inode *bd_inode = bdev->bd_inode; in clean_bdev_aliases() local
1634 struct address_space *bd_mapping = bd_inode->i_mapping; in clean_bdev_aliases()
1636 pgoff_t index = block >> (PAGE_SHIFT - bd_inode->i_blkbits); in clean_bdev_aliases()
1642 end = (block + len - 1) >> (PAGE_SHIFT - bd_inode->i_blkbits); in clean_bdev_aliases()
/linux-6.3-rc2/drivers/scsi/
A Dscsicam.c35 struct address_space *mapping = bdev_whole(dev)->bd_inode->i_mapping; in scsi_bios_ptable()
/linux-6.3-rc2/include/linux/
A Dblk_types.h48 struct inode * bd_inode; /* will die */ member
A Dblkdev.h209 return !inode_unhashed(disk->part0->bd_inode); in disk_live()
1361 return 1 << bdev->bd_inode->i_blkbits; in block_size()
/linux-6.3-rc2/fs/ext4/
A Dext4_jbd2.c208 struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; in ext4_check_bdev_write_error()
A Ddir.c195 sb->s_bdev->bd_inode->i_mapping, in ext4_readdir()
A 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()
5505 errseq_check_and_advance(&sb->s_bdev->bd_inode->i_mapping->wb_err, in __ext4_fill_super()
/linux-6.3-rc2/fs/erofs/
A Ddata.c73 return erofs_bread(buf, sb->s_bdev->bd_inode, blkaddr, type); in erofs_read_metabuf()
/linux-6.3-rc2/drivers/s390/block/
A Ddasd_ioctl.c223 block->gdp->part0->bd_inode->i_blkbits = in dasd_format()
/linux-6.3-rc2/fs/cramfs/
A Dinode.c185 struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; in cramfs_blkdev_read()
/linux-6.3-rc2/drivers/block/xen-blkback/
A Dxenbus.c107 invalidate_inode_pages2(blkif->vbd.bdev->bd_inode->i_mapping); in xen_update_blkif_status()
/linux-6.3-rc2/fs/btrfs/
A Ddisk-io.c3826 struct address_space *mapping = bdev->bd_inode->i_mapping; in btrfs_read_dev_one_super()
3913 struct address_space *mapping = device->bdev->bd_inode->i_mapping; in write_dev_supers()
4032 page = find_get_page(device->bdev->bd_inode->i_mapping, in wait_dev_supers()
A Dzoned.c119 struct address_space *mapping = bdev->bd_inode->i_mapping; in sb_write_pointer()
A Dcheck-integrity.c713 struct address_space *mapping = superblock_bdev->bd_inode->i_mapping; in btrfsic_process_superblock_dev_mirror()
/linux-6.3-rc2/fs/gfs2/
A Dops_fstype.c117 mapping->host = sb->s_bdev->bd_inode; in init_sbd()
A Dglock.c1213 mapping->host = s->s_bdev->bd_inode; in gfs2_glock_get()
/linux-6.3-rc2/fs/jbd2/
A Djournal.c1829 truncate_inode_pages_range(journal->j_dev->bd_inode->i_mapping, in __jbd2_journal_erase()
/linux-6.3-rc2/drivers/md/bcache/
A Dsuper.c174 page = read_cache_page_gfp(bdev->bd_inode->i_mapping, in read_super()

Completed in 79 milliseconds

12