diff options
author | Josef Sipek <jsipek@fsl.cs.sunysb.edu> | 2006-12-08 05:37:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:47 -0500 |
commit | 17506041de973bdc718b9a255d822e571b12b421 (patch) | |
tree | ae01f1c22b7c43c57426bf40ed6ef3ba2d5e5d48 /drivers/block/nbd.c | |
parent | e9536ae7205d255bc94616b72910fc6e16c861fe (diff) |
[PATCH] struct path: convert nbd
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>
Diffstat (limited to 'drivers/block/nbd.c')
-rw-r--r-- | drivers/block/nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
537 | error = -EINVAL; | 537 | error = -EINVAL; |
538 | file = fget(arg); | 538 | file = fget(arg); |
539 | if (file) { | 539 | if (file) { |
540 | inode = file->f_dentry->d_inode; | 540 | inode = file->f_path.dentry->d_inode; |
541 | if (S_ISSOCK(inode->i_mode)) { | 541 | if (S_ISSOCK(inode->i_mode)) { |
542 | lo->file = file; | 542 | lo->file = file; |
543 | lo->sock = SOCKET_I(inode); | 543 | lo->sock = SOCKET_I(inode); |