• Home
  • Raw
  • Download

Lines Matching refs:bd_inode

59 	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()
530 return filemap_write_and_wait(bdev->bd_inode->i_mapping); in __sync_blockdev()
689 struct inode *bd_inode = bdev_file_inode(file); in block_llseek() local
692 inode_lock(bd_inode); in block_llseek()
693 retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); in block_llseek()
694 inode_unlock(bd_inode); in block_llseek()
700 struct inode *bd_inode = bdev_file_inode(filp); in blkdev_fsync() local
701 struct block_device *bdev = I_BDEV(bd_inode); in blkdev_fsync()
932 bdev->bd_inode = inode; in bdget()
950 ihold(bdev->bd_inode); in bdgrab()
975 iput(bdev->bd_inode); in bdput()
986 if (bdev && !inode_unhashed(bdev->bd_inode)) { in bd_acquire()
1014 inode->i_mapping = bdev->bd_inode->i_mapping; in bd_acquire()
1127 if (inode_unhashed(bdev->bd_inode)) { in bdev_get_gendisk()
1348 bdev_size = i_size_read(bdev->bd_inode); in check_disk_size_change()
1355 i_size_write(bdev->bd_inode, disk_size); in check_disk_size_change()
1397 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in bd_set_nr_sectors()
1654 ret = devcgroup_inode_permission(bdev->bd_inode, perm); in blkdev_get()
1772 filp->f_mapping = bdev->bd_inode->i_mapping; in blkdev_open()
1906 struct inode *bd_inode = bdev_file_inode(file); in blkdev_write_iter() local
1907 loff_t size = i_size_read(bd_inode); in blkdev_write_iter()
1912 if (bdev_read_only(I_BDEV(bd_inode))) in blkdev_write_iter()
1915 if (IS_SWAPFILE(bd_inode) && !is_hibernate_resume_dev(bd_inode->i_rdev)) in blkdev_write_iter()
1946 struct inode *bd_inode = bdev_file_inode(file); in blkdev_read_iter() local
1947 loff_t size = i_size_read(bd_inode); in blkdev_read_iter()
2002 isize = i_size_read(bdev->bd_inode); in blkdev_fallocate()