Searched refs:inode (Results 1 – 5 of 5) sorted by relevance
/block/ |
D | bdev.c | 36 struct inode vfs_inode; 39 static inline struct bdev_inode *BDEV_I(struct inode *inode) in BDEV_I() argument 41 return container_of(inode, struct bdev_inode, vfs_inode); in BDEV_I() 44 struct block_device *I_BDEV(struct inode *inode) in I_BDEV() argument 46 return &BDEV_I(inode)->bdev; in I_BDEV() 52 struct inode *inode = bdev->bd_inode; in bdev_write_inode() local 55 spin_lock(&inode->i_lock); in bdev_write_inode() 56 while (inode->i_state & I_DIRTY) { in bdev_write_inode() 57 spin_unlock(&inode->i_lock); in bdev_write_inode() 58 ret = write_inode_now(inode, true); in bdev_write_inode() [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 | fops.c | 21 static inline struct inode *bdev_file_inode(struct file *file) in bdev_file_inode() 26 static int blkdev_get_block(struct inode *inode, sector_t iblock, in blkdev_get_block() argument 29 bh->b_bdev = I_BDEV(inode); in blkdev_get_block() 449 struct inode *bd_inode = bdev_file_inode(file); in blkdev_llseek() 480 static int blkdev_open(struct inode *inode, struct file *filp) in blkdev_open() argument 500 bdev = blkdev_get_by_dev(inode->i_rdev, filp->f_mode, filp); in blkdev_open() 510 static int blkdev_close(struct inode *inode, struct file *filp) in blkdev_close() argument 528 struct inode *bd_inode = bdev->bd_inode; in blkdev_write_iter() 628 struct inode *inode = bdev_file_inode(file); in blkdev_fallocate() local 629 struct block_device *bdev = I_BDEV(inode); in blkdev_fallocate() [all …]
|
D | ioctl.c | 93 struct inode *inode = bdev->bd_inode; in blk_ioctl_discard() local 116 filemap_invalidate_lock(inode->i_mapping); in blk_ioctl_discard() 122 filemap_invalidate_unlock(inode->i_mapping); in blk_ioctl_discard() 162 struct inode *inode = bdev->bd_inode; in blk_ioctl_zeroout() local 185 filemap_invalidate_lock(inode->i_mapping); in blk_ioctl_zeroout() 194 filemap_invalidate_unlock(inode->i_mapping); in blk_ioctl_zeroout()
|
D | blk-mq-debugfs.c | 604 static int blk_mq_debugfs_open(struct inode *inode, struct file *file) in blk_mq_debugfs_open() argument 606 const struct blk_mq_debugfs_attr *attr = inode->i_private; in blk_mq_debugfs_open() 623 return single_open(file, blk_mq_debugfs_show, inode->i_private); in blk_mq_debugfs_open() 626 static int blk_mq_debugfs_release(struct inode *inode, struct file *file) in blk_mq_debugfs_release() argument 628 const struct blk_mq_debugfs_attr *attr = inode->i_private; in blk_mq_debugfs_release() 631 return single_release(inode, file); in blk_mq_debugfs_release() 633 return seq_release(inode, file); in blk_mq_debugfs_release()
|