new helper: file_inode(file)
[deliverable/linux.git] / security / tomoyo / securityfs_if.c
index 8592f2fc6ebb4b847f72f93ef239cbd5696abf86..fcf32783b66bc564b90162cb7bb6b8fc0bc4db34 100644 (file)
@@ -135,7 +135,7 @@ static const struct file_operations tomoyo_self_operations = {
  */
 static int tomoyo_open(struct inode *inode, struct file *file)
 {
-       const int key = ((u8 *) file->f_path.dentry->d_inode->i_private)
+       const int key = ((u8 *) file_inode(file)->i_private)
                - ((u8 *) NULL);
        return tomoyo_open_control(key, file);
 }
This page took 0.024498 seconds and 5 git commands to generate.