Lines Matching defs:file
277 * Only allow unprivileged reservations if the file descriptor is open
480 struct file *file;
492 file = bdev_file_open_by_dev(bdev->bd_dev, mode, &bdev, NULL);
493 if (IS_ERR(file))
496 fput(file);
595 long blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
597 struct block_device *bdev = I_BDEV(file->f_mapping->host);
599 blk_mode_t mode = file_to_blk_mode(file);
654 long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
658 struct block_device *bdev = I_BDEV(file->f_mapping->host);
660 blk_mode_t mode = file_to_blk_mode(file);