aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-01-23 17:07:38 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-02-22 23:31:31 -0500
commit496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch)
tree8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /fs/binfmt_misc.c
parent57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff)
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 0c8869fdd14e..fecbbf3f8ff2 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -531,7 +531,7 @@ static void kill_node(Node *e)
531static ssize_t 531static ssize_t
532bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) 532bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos)
533{ 533{
534 Node *e = file->f_path.dentry->d_inode->i_private; 534 Node *e = file_inode(file)->i_private;
535 ssize_t res; 535 ssize_t res;
536 char *page; 536 char *page;
537 537
@@ -550,7 +550,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer,
550 size_t count, loff_t *ppos) 550 size_t count, loff_t *ppos)
551{ 551{
552 struct dentry *root; 552 struct dentry *root;
553 Node *e = file->f_path.dentry->d_inode->i_private; 553 Node *e = file_inode(file)->i_private;
554 int res = parse_command(buffer, count); 554 int res = parse_command(buffer, count);
555 555
556 switch (res) { 556 switch (res) {