Discussion:
[PATCH] cifs: new helper: file_inode(file)
ZhangZhen
2014-03-06 04:01:03 UTC
Permalink
cifs: new helper: file_inode(file)

Signed-off-by: Zhang Zhen <zhenzhang.zhang-hv44wF8Li93QT0dZR+***@public.gmane.org>
---
fs/cifs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
index 7749230..45cb59b 100644
--- a/fs/cifs/ioctl.c
+++ b/fs/cifs/ioctl.c
@@ -85,7 +85,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
goto out_fput;
}

- src_inode = src_file.file->f_dentry->d_inode;
+ src_inode = file_inode(src_file.file);

/*
* Note: cifs case is easier than btrfs since server responsible for
--
1.8.1.4


.
ZhangZhen
2014-03-27 08:49:47 UTC
Permalink
cifs: new helper: file_inode(file)

Signed-off-by: Zhang Zhen <zhenzhang.zhang-hv44wF8Li93QT0dZR+***@public.gmane.org>
---
fs/cifs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
index 7749230..45cb59b 100644
--- a/fs/cifs/ioctl.c
+++ b/fs/cifs/ioctl.c
@@ -85,7 +85,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
goto out_fput;
}

- src_inode = src_file.file->f_dentry->d_inode;
+ src_inode = file_inode(src_file.file);

/*
* Note: cifs case is easier than btrfs since server responsible for
--
1.8.1.4
Loading...