public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: cifs: new helper: file_inode(file)
@ 2013-12-11  3:02 Libo Chen
  2013-12-11 11:33 ` Jeff Layton
  2014-05-12  4:08 ` Steve French
  0 siblings, 2 replies; 3+ messages in thread
From: Libo Chen @ 2013-12-11  3:02 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, samba-technical, LKML, Li Zefan


Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
---
 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.2.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-12  4:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11  3:02 [PATCH] fs: cifs: new helper: file_inode(file) Libo Chen
2013-12-11 11:33 ` Jeff Layton
2014-05-12  4:08 ` Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox