aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 02:37:22 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 08:28:47 -0800
commit17506041de973bdc718b9a255d822e571b12b421 (patch)
treeae01f1c22b7c43c57426bf40ed6ef3ba2d5e5d48
parente9536ae7205d255bc94616b72910fc6e16c861fe (diff)
downloadkernel_samsung_tuna-17506041de973bdc718b9a255d822e571b12b421.zip
kernel_samsung_tuna-17506041de973bdc718b9a255d822e571b12b421.tar.gz
kernel_samsung_tuna-17506041de973bdc718b9a255d822e571b12b421.tar.bz2
[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>
-rw-r--r--drivers/block/nbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 7bf2cfb..090796b 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);