Searched refs:inode (Results 1 – 5 of 5) sorted by relevance
/block/ |
D | bdev.c | 34 struct inode vfs_inode; 37 static inline struct bdev_inode *BDEV_I(struct inode *inode) in BDEV_I() argument 39 return container_of(inode, struct bdev_inode, vfs_inode); in BDEV_I() 42 struct block_device *I_BDEV(struct inode *inode) in I_BDEV() argument 44 return &BDEV_I(inode)->bdev; in I_BDEV() 50 struct inode *inode = bdev->bd_inode; in bdev_write_inode() local 53 spin_lock(&inode->i_lock); in bdev_write_inode() 54 while (inode->i_state & I_DIRTY) { in bdev_write_inode() 55 spin_unlock(&inode->i_lock); in bdev_write_inode() 56 ret = write_inode_now(inode, true); in bdev_write_inode() [all …]
|
D | fops.c | 20 static struct inode *bdev_file_inode(struct file *file) in bdev_file_inode() 25 static int blkdev_get_block(struct inode *inode, sector_t iblock, in blkdev_get_block() argument 28 bh->b_bdev = I_BDEV(inode); in blkdev_get_block() 195 struct inode *inode = bdev_file_inode(file); in __blkdev_direct_IO() local 196 struct block_device *bdev = I_BDEV(inode); in __blkdev_direct_IO() 411 struct inode *bd_inode = bdev_file_inode(file); in blkdev_llseek() 423 struct inode *bd_inode = bdev_file_inode(filp); in blkdev_fsync() 443 static int blkdev_open(struct inode *inode, struct file *filp) in blkdev_open() argument 463 bdev = blkdev_get_by_dev(inode->i_rdev, filp->f_mode, filp); in blkdev_open() 471 static int blkdev_close(struct inode *inode, struct file *filp) in blkdev_close() argument [all …]
|
D | bsg.c | 33 static inline struct bsg_device *to_bsg_device(struct inode *inode) in to_bsg_device() argument 35 return container_of(inode->i_cdev, struct bsg_device, cdev); in to_bsg_device() 72 static int bsg_open(struct inode *inode, struct file *file) in bsg_open() argument 74 if (!blk_get_queue(to_bsg_device(inode)->queue)) in bsg_open() 79 static int bsg_release(struct inode *inode, struct file *file) in bsg_release() argument 81 blk_put_queue(to_bsg_device(inode)->queue); in bsg_release()
|
D | ioctl.c | 119 struct inode *inode = bdev->bd_inode; in blk_ioctl_discard() local 142 filemap_invalidate_lock(inode->i_mapping); in blk_ioctl_discard() 151 filemap_invalidate_unlock(inode->i_mapping); in blk_ioctl_discard() 160 struct inode *inode = bdev->bd_inode; in blk_ioctl_zeroout() local 183 filemap_invalidate_lock(inode->i_mapping); in blk_ioctl_zeroout() 192 filemap_invalidate_unlock(inode->i_mapping); in blk_ioctl_zeroout()
|
D | blk-mq-debugfs.c | 742 static int blk_mq_debugfs_open(struct inode *inode, struct file *file) in blk_mq_debugfs_open() argument 744 const struct blk_mq_debugfs_attr *attr = inode->i_private; in blk_mq_debugfs_open() 761 return single_open(file, blk_mq_debugfs_show, inode->i_private); in blk_mq_debugfs_open() 764 static int blk_mq_debugfs_release(struct inode *inode, struct file *file) in blk_mq_debugfs_release() argument 766 const struct blk_mq_debugfs_attr *attr = inode->i_private; in blk_mq_debugfs_release() 769 return single_release(inode, file); in blk_mq_debugfs_release() 771 return seq_release(inode, file); in blk_mq_debugfs_release()
|