diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-23 17:07:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-22 23:31:31 -0500 |
commit | 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch) | |
tree | 8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /arch/ia64/kernel/salinfo.c | |
parent | 57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff) |
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64/kernel/salinfo.c')
-rw-r--r-- | arch/ia64/kernel/salinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c index 79802e540e53..aa527d7e91f2 100644 --- a/arch/ia64/kernel/salinfo.c +++ b/arch/ia64/kernel/salinfo.c | |||
@@ -301,7 +301,7 @@ salinfo_event_open(struct inode *inode, struct file *file) | |||
301 | static ssize_t | 301 | static ssize_t |
302 | salinfo_event_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) | 302 | salinfo_event_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) |
303 | { | 303 | { |
304 | struct inode *inode = file->f_path.dentry->d_inode; | 304 | struct inode *inode = file_inode(file); |
305 | struct proc_dir_entry *entry = PDE(inode); | 305 | struct proc_dir_entry *entry = PDE(inode); |
306 | struct salinfo_data *data = entry->data; | 306 | struct salinfo_data *data = entry->data; |
307 | char cmd[32]; | 307 | char cmd[32]; |
@@ -463,7 +463,7 @@ retry: | |||
463 | static ssize_t | 463 | static ssize_t |
464 | salinfo_log_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) | 464 | salinfo_log_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) |
465 | { | 465 | { |
466 | struct inode *inode = file->f_path.dentry->d_inode; | 466 | struct inode *inode = file_inode(file); |
467 | struct proc_dir_entry *entry = PDE(inode); | 467 | struct proc_dir_entry *entry = PDE(inode); |
468 | struct salinfo_data *data = entry->data; | 468 | struct salinfo_data *data = entry->data; |
469 | u8 *buf; | 469 | u8 *buf; |
@@ -524,7 +524,7 @@ salinfo_log_clear(struct salinfo_data *data, int cpu) | |||
524 | static ssize_t | 524 | static ssize_t |
525 | salinfo_log_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) | 525 | salinfo_log_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) |
526 | { | 526 | { |
527 | struct inode *inode = file->f_path.dentry->d_inode; | 527 | struct inode *inode = file_inode(file); |
528 | struct proc_dir_entry *entry = PDE(inode); | 528 | struct proc_dir_entry *entry = PDE(inode); |
529 | struct salinfo_data *data = entry->data; | 529 | struct salinfo_data *data = entry->data; |
530 | char cmd[32]; | 530 | char cmd[32]; |