]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/coda/inode.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / fs / coda / inode.c
index cf674e9179a3c5eac4261e670b0b4b294a8dde2a..dada9d0abedeb9f3d5ae29b0d0d9bde577975f63 100644 (file)
@@ -130,7 +130,7 @@ static int get_device_index(struct coda_mount_data *data)
        f = fdget(data->fd);
        if (!f.file)
                goto Ebadf;
-       inode = f.file->f_path.dentry->d_inode;
+       inode = file_inode(f.file);
        if (!S_ISCHR(inode->i_mode) || imajor(inode) != CODA_PSDEV_MAJOR) {
                fdput(f);
                goto Ebadf;