]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nilfs2/ioctl.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / fs / nilfs2 / ioctl.c
index f3859354e41a97afcdb1c4f8fdec4d9e46f09666..b44bdb291b8435000055b6c7321acc57e3a026f3 100644 (file)
@@ -796,7 +796,7 @@ static int nilfs_ioctl_get_info(struct inode *inode, struct file *filp,
 
 long nilfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 {
-       struct inode *inode = filp->f_dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        void __user *argp = (void __user *)arg;
 
        switch (cmd) {