mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
[PATCH] struct path: convert block
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
61a8424ab8
commit
c5a20b6c26
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
|
||||||
ENOIOCTLCMD for unknown ioctls. */
|
ENOIOCTLCMD for unknown ioctls. */
|
||||||
long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
|
long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
struct block_device *bdev = file->f_dentry->d_inode->i_bdev;
|
struct block_device *bdev = file->f_path.dentry->d_inode->i_bdev;
|
||||||
struct gendisk *disk = bdev->bd_disk;
|
struct gendisk *disk = bdev->bd_disk;
|
||||||
int ret = -ENOIOCTLCMD;
|
int ret = -ENOIOCTLCMD;
|
||||||
if (disk->fops->compat_ioctl) {
|
if (disk->fops->compat_ioctl) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue