From: Josef Sipek Date: Fri, 8 Dec 2006 10:36:54 +0000 (-0800) Subject: [PATCH] struct path: convert block X-Git-Tag: upstream/snapshot3+hdmi~36592^2~335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5a20b6c26efb58c2ba2ebebcc65748f5b92f662;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [PATCH] struct path: convert block Signed-off-by: Josef Sipek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/block/ioctl.c b/block/ioctl.c index 9fddb99..f6962b6 100644 --- a/block/ioctl.c +++ b/block/ioctl.c @@ -290,7 +290,7 @@ int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd, ENOIOCTLCMD for unknown ioctls. */ 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; int ret = -ENOIOCTLCMD; if (disk->fops->compat_ioctl) {