diff options
Diffstat (limited to 'fs/coda/inode.c')
-rw-r--r-- | fs/coda/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index b64659fa82d0..01395defed85 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
@@ -119,7 +119,7 @@ static int get_device_index(struct coda_mount_data *data) | |||
119 | file = fget(data->fd); | 119 | file = fget(data->fd); |
120 | inode = NULL; | 120 | inode = NULL; |
121 | if(file) | 121 | if(file) |
122 | inode = file->f_dentry->d_inode; | 122 | inode = file->f_path.dentry->d_inode; |
123 | 123 | ||
124 | if(!inode || !S_ISCHR(inode->i_mode) || | 124 | if(!inode || !S_ISCHR(inode->i_mode) || |
125 | imajor(inode) != CODA_PSDEV_MAJOR) { | 125 | imajor(inode) != CODA_PSDEV_MAJOR) { |