Lines Matching refs:bd_inode
51 struct inode *inode = bdev->bd_inode; in bdev_write_inode()
72 struct address_space *mapping = bdev->bd_inode->i_mapping; in kill_bdev()
84 struct address_space *mapping = bdev->bd_inode->i_mapping; in invalidate_bdev()
116 truncate_inode_pages_range(bdev->bd_inode->i_mapping, lstart, lend); in truncate_bdev_range()
126 return invalidate_inode_pages2_range(bdev->bd_inode->i_mapping, in truncate_bdev_range()
134 loff_t size = i_size_read(bdev->bd_inode); in set_init_blocksize()
141 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in set_init_blocksize()
155 if (bdev->bd_inode->i_blkbits != blksize_bits(size)) { in set_blocksize()
157 bdev->bd_inode->i_blkbits = blksize_bits(size); in set_blocksize()
192 return filemap_flush(bdev->bd_inode->i_mapping); in sync_blockdev_nowait()
204 return filemap_write_and_wait(bdev->bd_inode->i_mapping); in sync_blockdev()
496 bdev->bd_inode = inode; in bdev_alloc()
510 bdev->bd_inode->i_rdev = dev; in bdev_add()
511 bdev->bd_inode->i_ino = dev; in bdev_add()
512 insert_inode_hash(bdev->bd_inode); in bdev_add()