aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hfsplus/ioctl.c')
-rw-r--r--fs/hfsplus/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfsplus/ioctl.c b/fs/hfsplus/ioctl.c
index 09addc8615fa..e3c4c4209428 100644
--- a/fs/hfsplus/ioctl.c
+++ b/fs/hfsplus/ioctl.c
@@ -59,7 +59,7 @@ static int hfsplus_ioctl_bless(struct file *file, int __user *user_flags)
59 59
60static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags) 60static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags)
61{ 61{
62 struct inode *inode = file->f_path.dentry->d_inode; 62 struct inode *inode = file_inode(file);
63 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); 63 struct hfsplus_inode_info *hip = HFSPLUS_I(inode);
64 unsigned int flags = 0; 64 unsigned int flags = 0;
65 65
@@ -75,7 +75,7 @@ static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags)
75 75
76static int hfsplus_ioctl_setflags(struct file *file, int __user *user_flags) 76static int hfsplus_ioctl_setflags(struct file *file, int __user *user_flags)
77{ 77{
78 struct inode *inode = file->f_path.dentry->d_inode; 78 struct inode *inode = file_inode(file);
79 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); 79 struct hfsplus_inode_info *hip = HFSPLUS_I(inode);
80 unsigned int flags; 80 unsigned int flags;
81 int err = 0; 81 int err = 0;