aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/oprofilefs.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-28 08:29:59 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-28 08:29:59 -0400
commit185a257f2f73bcd89050ad02da5bedbc28fc43fa (patch)
tree5e32586114534ed3f2165614cba3d578f5d87307 /drivers/oprofile/oprofilefs.c
parent3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff)
parenta77c64c1a641950626181b4857abb701d8f38ccc (diff)
Merge branch 'master' into gfs2
Diffstat (limited to 'drivers/oprofile/oprofilefs.c')
-rw-r--r--drivers/oprofile/oprofilefs.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c
index 71c2da277d6e..5756401fb15b 100644
--- a/drivers/oprofile/oprofilefs.c
+++ b/drivers/oprofile/oprofilefs.c
@@ -31,7 +31,6 @@ static struct inode * oprofilefs_get_inode(struct super_block * sb, int mode)
31 inode->i_mode = mode; 31 inode->i_mode = mode;
32 inode->i_uid = 0; 32 inode->i_uid = 0;
33 inode->i_gid = 0; 33 inode->i_gid = 0;
34 inode->i_blksize = PAGE_CACHE_SIZE;
35 inode->i_blocks = 0; 34 inode->i_blocks = 0;
36 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 35 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
37 } 36 }
@@ -110,8 +109,8 @@ static ssize_t ulong_write_file(struct file * file, char const __user * buf, siz
110 109
111static int default_open(struct inode * inode, struct file * filp) 110static int default_open(struct inode * inode, struct file * filp)
112{ 111{
113 if (inode->u.generic_ip) 112 if (inode->i_private)
114 filp->private_data = inode->u.generic_ip; 113 filp->private_data = inode->i_private;
115 return 0; 114 return 0;
116} 115}
117 116
@@ -158,7 +157,7 @@ int oprofilefs_create_ulong(struct super_block * sb, struct dentry * root,
158 if (!d) 157 if (!d)
159 return -EFAULT; 158 return -EFAULT;
160 159
161 d->d_inode->u.generic_ip = val; 160 d->d_inode->i_private = val;
162 return 0; 161 return 0;
163} 162}
164 163
@@ -171,7 +170,7 @@ int oprofilefs_create_ro_ulong(struct super_block * sb, struct dentry * root,
171 if (!d) 170 if (!d)
172 return -EFAULT; 171 return -EFAULT;
173 172
174 d->d_inode->u.generic_ip = val; 173 d->d_inode->i_private = val;
175 return 0; 174 return 0;
176} 175}
177 176
@@ -197,7 +196,7 @@ int oprofilefs_create_ro_atomic(struct super_block * sb, struct dentry * root,
197 if (!d) 196 if (!d)
198 return -EFAULT; 197 return -EFAULT;
199 198
200 d->d_inode->u.generic_ip = val; 199 d->d_inode->i_private = val;
201 return 0; 200 return 0;
202} 201}
203 202