From: Josef Sipek Date: Fri, 8 Dec 2006 10:37:22 +0000 (-0800) Subject: [PATCH] struct path: convert nbd X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17506041de973bdc718b9a255d822e571b12b421;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] struct path: convert nbd Signed-off-by: Josef Sipek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 7bf2cfbd6285..090796bef78f 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -537,7 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file, error = -EINVAL; file = fget(arg); if (file) { - inode = file->f_dentry->d_inode; + inode = file->f_path.dentry->d_inode; if (S_ISSOCK(inode->i_mode)) { lo->file = file; lo->sock = SOCKET_I(inode);