Lines Matching defs:file
52 struct block_device *file_bdev(struct file *bdev_file)
818 static inline bool bdev_unclaimed(const struct file *bdev_file)
823 static void bdev_yield_write_access(struct file *bdev_file)
847 * @bdev_file: file for the block device
859 const struct blk_holder_ops *hops, struct file *bdev_file)
938 * file was opened for writing, but does not allow reads or writes.
965 struct file *bdev_file_open_by_dev(dev_t dev, blk_mode_t mode, void *holder,
968 struct file *bdev_file;
1001 struct file *bdev_file_open_by_path(const char *path, blk_mode_t mode,
1005 struct file *file;
1013 file = bdev_file_open_by_dev(dev, mode, holder, hops);
1014 if (!IS_ERR(file) && (mode & BLK_OPEN_WRITE)) {
1015 if (bdev_read_only(file_bdev(file))) {
1016 fput(file);
1017 file = ERR_PTR(-EACCES);
1021 return file;
1025 static inline void bd_yield_claim(struct file *bdev_file)
1039 void bdev_release(struct file *bdev_file)
1084 * bdev_fput - yield claim to the block device and put the file
1087 * Yield claim on the block device and put the file. Ensure that the
1088 * block device can be reclaimed before the file is closed which is a
1091 void bdev_fput(struct file *bdev_file)
1161 * Tell the file system that this devices or media is dead. If @surprise is set
1165 * This calls into the file system, which then typicall syncs out all dirty data
1167 * the file system. In addition we also invalidate the block device mapping.
1244 * Note that the inode passed to this is the inode of a block device node file,