Commit 17506041 authored by Josef Sipek's avatar Josef Sipek Committed by Linus Torvalds

[PATCH] struct path: convert nbd

Signed-off-by: default avatarJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e9536ae7
...@@ -537,7 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file, ...@@ -537,7 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file,
error = -EINVAL; error = -EINVAL;
file = fget(arg); file = fget(arg);
if (file) { if (file) {
inode = file->f_dentry->d_inode; inode = file->f_path.dentry->d_inode;
if (S_ISSOCK(inode->i_mode)) { if (S_ISSOCK(inode->i_mode)) {
lo->file = file; lo->file = file;
lo->sock = SOCKET_I(inode); lo->sock = SOCKET_I(inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment