aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/autofs/inode.c2
-rw-r--r--fs/autofs/symlink.c2
-rw-r--r--fs/binfmt_misc.c8
-rw-r--r--fs/debugfs/file.c4
-rw-r--r--fs/debugfs/inode.c4
-rw-r--r--fs/devpts/inode.c4
-rw-r--r--fs/freevxfs/vxfs.h2
-rw-r--r--fs/freevxfs/vxfs_inode.c4
-rw-r--r--fs/fuse/control.c6
-rw-r--r--fs/inode.c2
-rw-r--r--fs/jffs/inode-v23.c34
-rw-r--r--fs/libfs.c2
-rw-r--r--fs/ocfs2/dlmglue.c2
13 files changed, 38 insertions, 38 deletions
diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c
index c81d6b8c2828..d39d2acd9b38 100644
--- a/fs/autofs/inode.c
+++ b/fs/autofs/inode.c
@@ -241,7 +241,7 @@ static void autofs_read_inode(struct inode *inode)
241 241
242 inode->i_op = &autofs_symlink_inode_operations; 242 inode->i_op = &autofs_symlink_inode_operations;
243 sl = &sbi->symlink[n]; 243 sl = &sbi->symlink[n];
244 inode->u.generic_ip = sl; 244 inode->i_private = sl;
245 inode->i_mode = S_IFLNK | S_IRWXUGO; 245 inode->i_mode = S_IFLNK | S_IRWXUGO;
246 inode->i_mtime.tv_sec = inode->i_ctime.tv_sec = sl->mtime; 246 inode->i_mtime.tv_sec = inode->i_ctime.tv_sec = sl->mtime;
247 inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; 247 inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0;
diff --git a/fs/autofs/symlink.c b/fs/autofs/symlink.c
index 52e8772b066e..c74f2eb65775 100644
--- a/fs/autofs/symlink.c
+++ b/fs/autofs/symlink.c
@@ -15,7 +15,7 @@
15/* Nothing to release.. */ 15/* Nothing to release.. */
16static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd) 16static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd)
17{ 17{
18 char *s=((struct autofs_symlink *)dentry->d_inode->u.generic_ip)->data; 18 char *s=((struct autofs_symlink *)dentry->d_inode->i_private)->data;
19 nd_set_link(nd, s); 19 nd_set_link(nd, s);
20 return NULL; 20 return NULL;
21} 21}
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);
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index e4b430552c88..bf3901ab1744 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -32,8 +32,8 @@ static ssize_t default_write_file(struct file *file, const char __user *buf,
32 32
33static int default_open(struct inode *inode, struct file *file) 33static int default_open(struct inode *inode, struct file *file)
34{ 34{
35 if (inode->u.generic_ip) 35 if (inode->i_private)
36 file->private_data = inode->u.generic_ip; 36 file->private_data = inode->i_private;
37 37
38 return 0; 38 return 0;
39} 39}
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 3ca268d2e5a2..717f4821ed02 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -168,7 +168,7 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
168 * directory dentry if set. If this paramater is NULL, then the 168 * directory dentry if set. If this paramater is NULL, then the
169 * file will be created in the root of the debugfs filesystem. 169 * file will be created in the root of the debugfs filesystem.
170 * @data: a pointer to something that the caller will want to get to later 170 * @data: a pointer to something that the caller will want to get to later
171 * on. The inode.u.generic_ip pointer will point to this value on 171 * on. The inode.i_private pointer will point to this value on
172 * the open() call. 172 * the open() call.
173 * @fops: a pointer to a struct file_operations that should be used for 173 * @fops: a pointer to a struct file_operations that should be used for
174 * this file. 174 * this file.
@@ -209,7 +209,7 @@ struct dentry *debugfs_create_file(const char *name, mode_t mode,
209 209
210 if (dentry->d_inode) { 210 if (dentry->d_inode) {
211 if (data) 211 if (data)
212 dentry->d_inode->u.generic_ip = data; 212 dentry->d_inode->i_private = data;
213 if (fops) 213 if (fops)
214 dentry->d_inode->i_fop = fops; 214 dentry->d_inode->i_fop = fops;
215 } 215 }
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index f7aef5bb584a..5bf06a10dddf 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -177,7 +177,7 @@ int devpts_pty_new(struct tty_struct *tty)
177 inode->i_gid = config.setgid ? config.gid : current->fsgid; 177 inode->i_gid = config.setgid ? config.gid : current->fsgid;
178 inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 178 inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
179 init_special_inode(inode, S_IFCHR|config.mode, device); 179 init_special_inode(inode, S_IFCHR|config.mode, device);
180 inode->u.generic_ip = tty; 180 inode->i_private = tty;
181 181
182 dentry = get_node(number); 182 dentry = get_node(number);
183 if (!IS_ERR(dentry) && !dentry->d_inode) 183 if (!IS_ERR(dentry) && !dentry->d_inode)
@@ -196,7 +196,7 @@ struct tty_struct *devpts_get_tty(int number)
196 tty = NULL; 196 tty = NULL;
197 if (!IS_ERR(dentry)) { 197 if (!IS_ERR(dentry)) {
198 if (dentry->d_inode) 198 if (dentry->d_inode)
199 tty = dentry->d_inode->u.generic_ip; 199 tty = dentry->d_inode->i_private;
200 dput(dentry); 200 dput(dentry);
201 } 201 }
202 202
diff --git a/fs/freevxfs/vxfs.h b/fs/freevxfs/vxfs.h
index d35979a58743..c8a92652612a 100644
--- a/fs/freevxfs/vxfs.h
+++ b/fs/freevxfs/vxfs.h
@@ -252,7 +252,7 @@ enum {
252 * Get filesystem private data from VFS inode. 252 * Get filesystem private data from VFS inode.
253 */ 253 */
254#define VXFS_INO(ip) \ 254#define VXFS_INO(ip) \
255 ((struct vxfs_inode_info *)(ip)->u.generic_ip) 255 ((struct vxfs_inode_info *)(ip)->i_private)
256 256
257/* 257/*
258 * Get filesystem private data from VFS superblock. 258 * Get filesystem private data from VFS superblock.
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c
index ca6a39714771..32a82ed108e4 100644
--- a/fs/freevxfs/vxfs_inode.c
+++ b/fs/freevxfs/vxfs_inode.c
@@ -243,7 +243,7 @@ vxfs_iinit(struct inode *ip, struct vxfs_inode_info *vip)
243 ip->i_blocks = vip->vii_blocks; 243 ip->i_blocks = vip->vii_blocks;
244 ip->i_generation = vip->vii_gen; 244 ip->i_generation = vip->vii_gen;
245 245
246 ip->u.generic_ip = (void *)vip; 246 ip->i_private = vip;
247 247
248} 248}
249 249
@@ -338,5 +338,5 @@ vxfs_read_inode(struct inode *ip)
338void 338void
339vxfs_clear_inode(struct inode *ip) 339vxfs_clear_inode(struct inode *ip)
340{ 340{
341 kmem_cache_free(vxfs_inode_cachep, ip->u.generic_ip); 341 kmem_cache_free(vxfs_inode_cachep, ip->i_private);
342} 342}
diff --git a/fs/fuse/control.c b/fs/fuse/control.c
index 46fe60b2da23..79ec1f23d4d2 100644
--- a/fs/fuse/control.c
+++ b/fs/fuse/control.c
@@ -23,7 +23,7 @@ static struct fuse_conn *fuse_ctl_file_conn_get(struct file *file)
23{ 23{
24 struct fuse_conn *fc; 24 struct fuse_conn *fc;
25 mutex_lock(&fuse_mutex); 25 mutex_lock(&fuse_mutex);
26 fc = file->f_dentry->d_inode->u.generic_ip; 26 fc = file->f_dentry->d_inode->i_private;
27 if (fc) 27 if (fc)
28 fc = fuse_conn_get(fc); 28 fc = fuse_conn_get(fc);
29 mutex_unlock(&fuse_mutex); 29 mutex_unlock(&fuse_mutex);
@@ -98,7 +98,7 @@ static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
98 inode->i_op = iop; 98 inode->i_op = iop;
99 inode->i_fop = fop; 99 inode->i_fop = fop;
100 inode->i_nlink = nlink; 100 inode->i_nlink = nlink;
101 inode->u.generic_ip = fc; 101 inode->i_private = fc;
102 d_add(dentry, inode); 102 d_add(dentry, inode);
103 return dentry; 103 return dentry;
104} 104}
@@ -150,7 +150,7 @@ void fuse_ctl_remove_conn(struct fuse_conn *fc)
150 150
151 for (i = fc->ctl_ndents - 1; i >= 0; i--) { 151 for (i = fc->ctl_ndents - 1; i >= 0; i--) {
152 struct dentry *dentry = fc->ctl_dentry[i]; 152 struct dentry *dentry = fc->ctl_dentry[i];
153 dentry->d_inode->u.generic_ip = NULL; 153 dentry->d_inode->i_private = NULL;
154 d_drop(dentry); 154 d_drop(dentry);
155 dput(dentry); 155 dput(dentry);
156 } 156 }
diff --git a/fs/inode.c b/fs/inode.c
index 0bf9f0444a96..77e254792025 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -163,7 +163,7 @@ static struct inode *alloc_inode(struct super_block *sb)
163 bdi = sb->s_bdev->bd_inode->i_mapping->backing_dev_info; 163 bdi = sb->s_bdev->bd_inode->i_mapping->backing_dev_info;
164 mapping->backing_dev_info = bdi; 164 mapping->backing_dev_info = bdi;
165 } 165 }
166 memset(&inode->u, 0, sizeof(inode->u)); 166 inode->i_private = 0;
167 inode->i_mapping = mapping; 167 inode->i_mapping = mapping;
168 } 168 }
169 return inode; 169 return inode;
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c
index b59553d28d13..7358ef87f16b 100644
--- a/fs/jffs/inode-v23.c
+++ b/fs/jffs/inode-v23.c
@@ -369,7 +369,7 @@ jffs_new_inode(const struct inode * dir, struct jffs_raw_inode *raw_inode,
369 369
370 f = jffs_find_file(c, raw_inode->ino); 370 f = jffs_find_file(c, raw_inode->ino);
371 371
372 inode->u.generic_ip = (void *)f; 372 inode->i_private = (void *)f;
373 insert_inode_hash(inode); 373 insert_inode_hash(inode);
374 374
375 return inode; 375 return inode;
@@ -442,7 +442,7 @@ jffs_rename(struct inode *old_dir, struct dentry *old_dentry,
442 }); 442 });
443 443
444 result = -ENOTDIR; 444 result = -ENOTDIR;
445 if (!(old_dir_f = (struct jffs_file *)old_dir->u.generic_ip)) { 445 if (!(old_dir_f = old_dir->i_private)) {
446 D(printk("jffs_rename(): Old dir invalid.\n")); 446 D(printk("jffs_rename(): Old dir invalid.\n"));
447 goto jffs_rename_end; 447 goto jffs_rename_end;
448 } 448 }
@@ -456,7 +456,7 @@ jffs_rename(struct inode *old_dir, struct dentry *old_dentry,
456 456
457 /* Find the new directory. */ 457 /* Find the new directory. */
458 result = -ENOTDIR; 458 result = -ENOTDIR;
459 if (!(new_dir_f = (struct jffs_file *)new_dir->u.generic_ip)) { 459 if (!(new_dir_f = new_dir->i_private)) {
460 D(printk("jffs_rename(): New dir invalid.\n")); 460 D(printk("jffs_rename(): New dir invalid.\n"));
461 goto jffs_rename_end; 461 goto jffs_rename_end;
462 } 462 }
@@ -593,7 +593,7 @@ jffs_readdir(struct file *filp, void *dirent, filldir_t filldir)
593 } 593 }
594 else { 594 else {
595 ddino = ((struct jffs_file *) 595 ddino = ((struct jffs_file *)
596 inode->u.generic_ip)->pino; 596 inode->i_private)->pino;
597 } 597 }
598 D3(printk("jffs_readdir(): \"..\" %u\n", ddino)); 598 D3(printk("jffs_readdir(): \"..\" %u\n", ddino));
599 if (filldir(dirent, "..", 2, filp->f_pos, ddino, DT_DIR) < 0) { 599 if (filldir(dirent, "..", 2, filp->f_pos, ddino, DT_DIR) < 0) {
@@ -604,7 +604,7 @@ jffs_readdir(struct file *filp, void *dirent, filldir_t filldir)
604 } 604 }
605 filp->f_pos++; 605 filp->f_pos++;
606 } 606 }
607 f = ((struct jffs_file *)inode->u.generic_ip)->children; 607 f = ((struct jffs_file *)inode->i_private)->children;
608 608
609 j = 2; 609 j = 2;
610 while(f && (f->deleted || j++ < filp->f_pos )) { 610 while(f && (f->deleted || j++ < filp->f_pos )) {
@@ -668,7 +668,7 @@ jffs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
668 } 668 }
669 669
670 r = -EACCES; 670 r = -EACCES;
671 if (!(d = (struct jffs_file *)dir->u.generic_ip)) { 671 if (!(d = (struct jffs_file *)dir->i_private)) {
672 D(printk("jffs_lookup(): No such inode! (%lu)\n", 672 D(printk("jffs_lookup(): No such inode! (%lu)\n",
673 dir->i_ino)); 673 dir->i_ino));
674 goto jffs_lookup_end; 674 goto jffs_lookup_end;
@@ -739,7 +739,7 @@ jffs_do_readpage_nolock(struct file *file, struct page *page)
739 unsigned long read_len; 739 unsigned long read_len;
740 int result; 740 int result;
741 struct inode *inode = (struct inode*)page->mapping->host; 741 struct inode *inode = (struct inode*)page->mapping->host;
742 struct jffs_file *f = (struct jffs_file *)inode->u.generic_ip; 742 struct jffs_file *f = (struct jffs_file *)inode->i_private;
743 struct jffs_control *c = (struct jffs_control *)inode->i_sb->s_fs_info; 743 struct jffs_control *c = (struct jffs_control *)inode->i_sb->s_fs_info;
744 int r; 744 int r;
745 loff_t offset; 745 loff_t offset;
@@ -828,7 +828,7 @@ jffs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
828 }); 828 });
829 829
830 lock_kernel(); 830 lock_kernel();
831 dir_f = (struct jffs_file *)dir->u.generic_ip; 831 dir_f = dir->i_private;
832 832
833 ASSERT(if (!dir_f) { 833 ASSERT(if (!dir_f) {
834 printk(KERN_ERR "jffs_mkdir(): No reference to a " 834 printk(KERN_ERR "jffs_mkdir(): No reference to a "
@@ -972,7 +972,7 @@ jffs_remove(struct inode *dir, struct dentry *dentry, int type)
972 kfree(_name); 972 kfree(_name);
973 }); 973 });
974 974
975 dir_f = (struct jffs_file *) dir->u.generic_ip; 975 dir_f = dir->i_private;
976 c = dir_f->c; 976 c = dir_f->c;
977 977
978 result = -ENOENT; 978 result = -ENOENT;
@@ -1082,7 +1082,7 @@ jffs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t rdev)
1082 if (!old_valid_dev(rdev)) 1082 if (!old_valid_dev(rdev))
1083 return -EINVAL; 1083 return -EINVAL;
1084 lock_kernel(); 1084 lock_kernel();
1085 dir_f = (struct jffs_file *)dir->u.generic_ip; 1085 dir_f = dir->i_private;
1086 c = dir_f->c; 1086 c = dir_f->c;
1087 1087
1088 D3(printk (KERN_NOTICE "mknod(): down biglock\n")); 1088 D3(printk (KERN_NOTICE "mknod(): down biglock\n"));
@@ -1186,7 +1186,7 @@ jffs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
1186 kfree(_symname); 1186 kfree(_symname);
1187 }); 1187 });
1188 1188
1189 dir_f = (struct jffs_file *)dir->u.generic_ip; 1189 dir_f = dir->i_private;
1190 ASSERT(if (!dir_f) { 1190 ASSERT(if (!dir_f) {
1191 printk(KERN_ERR "jffs_symlink(): No reference to a " 1191 printk(KERN_ERR "jffs_symlink(): No reference to a "
1192 "jffs_file struct in inode.\n"); 1192 "jffs_file struct in inode.\n");
@@ -1289,7 +1289,7 @@ jffs_create(struct inode *dir, struct dentry *dentry, int mode,
1289 kfree(s); 1289 kfree(s);
1290 }); 1290 });
1291 1291
1292 dir_f = (struct jffs_file *)dir->u.generic_ip; 1292 dir_f = dir->i_private;
1293 ASSERT(if (!dir_f) { 1293 ASSERT(if (!dir_f) {
1294 printk(KERN_ERR "jffs_create(): No reference to a " 1294 printk(KERN_ERR "jffs_create(): No reference to a "
1295 "jffs_file struct in inode.\n"); 1295 "jffs_file struct in inode.\n");
@@ -1403,9 +1403,9 @@ jffs_file_write(struct file *filp, const char *buf, size_t count,
1403 goto out_isem; 1403 goto out_isem;
1404 } 1404 }
1405 1405
1406 if (!(f = (struct jffs_file *)inode->u.generic_ip)) { 1406 if (!(f = inode->i_private)) {
1407 D(printk("jffs_file_write(): inode->u.generic_ip = 0x%p\n", 1407 D(printk("jffs_file_write(): inode->i_private = 0x%p\n",
1408 inode->u.generic_ip)); 1408 inode->i_private));
1409 goto out_isem; 1409 goto out_isem;
1410 } 1410 }
1411 1411
@@ -1693,7 +1693,7 @@ jffs_read_inode(struct inode *inode)
1693 mutex_unlock(&c->fmc->biglock); 1693 mutex_unlock(&c->fmc->biglock);
1694 return; 1694 return;
1695 } 1695 }
1696 inode->u.generic_ip = (void *)f; 1696 inode->i_private = f;
1697 inode->i_mode = f->mode; 1697 inode->i_mode = f->mode;
1698 inode->i_nlink = f->nlink; 1698 inode->i_nlink = f->nlink;
1699 inode->i_uid = f->uid; 1699 inode->i_uid = f->uid;
@@ -1748,7 +1748,7 @@ jffs_delete_inode(struct inode *inode)
1748 lock_kernel(); 1748 lock_kernel();
1749 inode->i_size = 0; 1749 inode->i_size = 0;
1750 inode->i_blocks = 0; 1750 inode->i_blocks = 0;
1751 inode->u.generic_ip = NULL; 1751 inode->i_private = NULL;
1752 clear_inode(inode); 1752 clear_inode(inode);
1753 if (inode->i_nlink == 0) { 1753 if (inode->i_nlink == 0) {
1754 c = (struct jffs_control *) inode->i_sb->s_fs_info; 1754 c = (struct jffs_control *) inode->i_sb->s_fs_info;
diff --git a/fs/libfs.c b/fs/libfs.c
index ac02ea602c3d..2751793beeaa 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -547,7 +547,7 @@ int simple_attr_open(struct inode *inode, struct file *file,
547 547
548 attr->get = get; 548 attr->get = get;
549 attr->set = set; 549 attr->set = set;
550 attr->data = inode->u.generic_ip; 550 attr->data = inode->i_private;
551 attr->fmt = fmt; 551 attr->fmt = fmt;
552 mutex_init(&attr->mutex); 552 mutex_init(&attr->mutex);
553 553
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index de887063dcfc..8801e41afe80 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -2052,7 +2052,7 @@ static int ocfs2_dlm_debug_open(struct inode *inode, struct file *file)
2052 mlog_errno(ret); 2052 mlog_errno(ret);
2053 goto out; 2053 goto out;
2054 } 2054 }
2055 osb = (struct ocfs2_super *) inode->u.generic_ip; 2055 osb = inode->i_private;
2056 ocfs2_get_dlm_debug(osb->osb_dlm_debug); 2056 ocfs2_get_dlm_debug(osb->osb_dlm_debug);
2057 priv->p_dlm_debug = osb->osb_dlm_debug; 2057 priv->p_dlm_debug = osb->osb_dlm_debug;
2058 INIT_LIST_HEAD(&priv->p_iter_res.l_debug_list); 2058 INIT_LIST_HEAD(&priv->p_iter_res.l_debug_list);