aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 34ebbc191e46..6759b9839ce8 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -517,7 +517,7 @@ static struct inode *bm_get_inode(struct super_block *sb, int mode)
517 517
518static void bm_clear_inode(struct inode *inode) 518static void bm_clear_inode(struct inode *inode)
519{ 519{
520 kfree(inode->u.generic_ip); 520 kfree(inode->i_private);
521} 521}
522 522
523static void kill_node(Node *e) 523static void kill_node(Node *e)
@@ -545,7 +545,7 @@ static void kill_node(Node *e)
545static ssize_t 545static ssize_t
546bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) 546bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos)
547{ 547{
548 Node *e = file->f_dentry->d_inode->u.generic_ip; 548 Node *e = file->f_dentry->d_inode->i_private;
549 loff_t pos = *ppos; 549 loff_t pos = *ppos;
550 ssize_t res; 550 ssize_t res;
551 char *page; 551 char *page;
@@ -579,7 +579,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer,
579 size_t count, loff_t *ppos) 579 size_t count, loff_t *ppos)
580{ 580{
581 struct dentry *root; 581 struct dentry *root;
582 Node *e = file->f_dentry->d_inode->u.generic_ip; 582 Node *e = file->f_dentry->d_inode->i_private;
583 int res = parse_command(buffer, count); 583 int res = parse_command(buffer, count);
584 584
585 switch (res) { 585 switch (res) {
@@ -646,7 +646,7 @@ static ssize_t bm_register_write(struct file *file, const char __user *buffer,
646 } 646 }
647 647
648 e->dentry = dget(dentry); 648 e->dentry = dget(dentry);
649 inode->u.generic_ip = e; 649 inode->i_private = e;
650 inode->i_fop = &bm_entry_operations; 650 inode->i_fop = &bm_entry_operations;
651 651
652 d_instantiate(dentry, inode); 652 d_instantiate(dentry, inode);