[PATCH] struct path: convert coda
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a7113a9662
commit
d4176d326d
@@ -119,7 +119,7 @@ static int get_device_index(struct coda_mount_data *data)
|
||||
file = fget(data->fd);
|
||||
inode = NULL;
|
||||
if(file)
|
||||
inode = file->f_dentry->d_inode;
|
||||
inode = file->f_path.dentry->d_inode;
|
||||
|
||||
if(!inode || !S_ISCHR(inode->i_mode) ||
|
||||
imajor(inode) != CODA_PSDEV_MAJOR) {
|
||||
|
||||
Reference in New Issue
Block a user