All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2-1.6: Use filep_dentry in compat_ctl.
@ 2010-02-10  8:44 Tao Ma
  2010-02-12  0:05 ` Sunil Mushran
  0 siblings, 1 reply; 2+ messages in thread
From: Tao Ma @ 2010-02-10  8:44 UTC (permalink / raw)
  To: ocfs2-devel

17fb03bb01b4ae34643b16f2029049e5bab350e is backported from
mainline, but the structure has changed somehow since 2.6.18.
So get inode like we do in ioctl.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
---
 fs/ocfs2/ioctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c
index 1d3f828..56dba61 100644
--- a/fs/ocfs2/ioctl.c
+++ b/fs/ocfs2/ioctl.c
@@ -184,7 +184,7 @@ long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg)
 {
 	bool preserve;
 	struct reflink_arguments args;
-	struct inode *inode = file->f_path.dentry->d_inode;
+	struct inode *inode = filp_dentry(file)->d_inode;
 
 	switch (cmd) {
 	case OCFS2_IOC32_GETFLAGS:
-- 
1.5.5

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

end of thread, other threads:[~2010-02-12  0:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-10  8:44 [Ocfs2-devel] [PATCH] ocfs2-1.6: Use filep_dentry in compat_ctl Tao Ma
2010-02-12  0:05 ` Sunil Mushran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.