diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_fs.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 65a2a23f6f8a..644bd6f6467c 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | static struct super_block *qib_super; | 46 | static struct super_block *qib_super; |
47 | 47 | ||
48 | #define private2dd(file) ((file)->f_dentry->d_inode->i_private) | 48 | #define private2dd(file) (file_inode(file)->i_private) |
49 | 49 | ||
50 | static int qibfs_mknod(struct inode *dir, struct dentry *dentry, | 50 | static int qibfs_mknod(struct inode *dir, struct dentry *dentry, |
51 | umode_t mode, const struct file_operations *fops, | 51 | umode_t mode, const struct file_operations *fops, |
@@ -171,7 +171,7 @@ static const struct file_operations cntr_ops[] = { | |||
171 | }; | 171 | }; |
172 | 172 | ||
173 | /* | 173 | /* |
174 | * Could use file->f_dentry->d_inode->i_ino to figure out which file, | 174 | * Could use file_inode(file)->i_ino to figure out which file, |
175 | * instead of separate routine for each, but for now, this works... | 175 | * instead of separate routine for each, but for now, this works... |
176 | */ | 176 | */ |
177 | 177 | ||