Lines Matching refs:bd_inode
54 loff_t sz = i_size_read(bdev->bd_inode);
67 if (bdev->bd_inode->i_mapping->nrpages == 0)
70 truncate_inode_pages(bdev->bd_inode->i_mapping, 0);
87 bdev->bd_inode->i_blkbits = blksize_bits(size);
184 return filemap_flush(bdev->bd_inode->i_mapping);
185 return filemap_write_and_wait(bdev->bd_inode->i_mapping);
335 struct inode *bd_inode = file->f_mapping->host;
339 mutex_lock(&bd_inode->i_mutex);
340 size = i_size_read(bd_inode);
356 mutex_unlock(&bd_inode->i_mutex);
362 struct inode *bd_inode = filp->f_mapping->host;
363 struct block_device *bdev = I_BDEV(bd_inode);
371 mutex_unlock(&bd_inode->i_mutex);
377 mutex_lock(&bd_inode->i_mutex);
527 bdev->bd_inode = inode;
553 atomic_inc(&bdev->bd_inode->i_count);
563 ret += bdev->bd_inode->i_mapping->nrpages;
571 iput(bdev->bd_inode);
583 atomic_inc(&bdev->bd_inode->i_count);
594 * We take an additional bd_inode->i_count for inode,
599 atomic_inc(&bdev->bd_inode->i_count);
601 inode->i_mapping = bdev->bd_inode->i_mapping;
624 iput(bdev->bd_inode);
1236 bdev_size = i_size_read(bdev->bd_inode);
1244 i_size_write(bdev->bd_inode, disk_size);
1309 bdev->bd_inode->i_size = size;
1316 bdev->bd_inode->i_blkbits = blksize_bits(bsize);
1344 ret = devcgroup_inode_permission(bdev->bd_inode, perm);
1393 bdev->bd_inode->i_data.backing_dev_info = bdi;
1408 bdev->bd_inode->i_data.backing_dev_info =
1409 whole->bd_inode->i_data.backing_dev_info;
1442 bdev->bd_inode->i_data.backing_dev_info = &default_backing_dev_info;
1490 filp->f_mapping = bdev->bd_inode->i_mapping;
1530 bdev->bd_inode->i_data.backing_dev_info = &default_backing_dev_info;