new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -2769,7 +2769,7 @@ static ssize_t int_proc_write(struct file *file, const char __user *buffer,
|
||||
nr = nr * 10 + c;
|
||||
p++;
|
||||
} while (--len);
|
||||
*(int *)PDE(file->f_path.dentry->d_inode)->data = nr;
|
||||
*(int *)PDE(file_inode(file))->data = nr;
|
||||
return count;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user