Skip to content

Commit

Permalink
[PATCH] i386: change uses of f_{dentry, vfsmnt} to use f_path
Browse files Browse the repository at this point in the history
Change all the uses of f_{dentry,vfsmnt} to f_path.{dentry,mnt} in the i386
arch code.

Signed-off-by: Josef "Jeff" Sipek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Josef "Jeff" Sipek authored and Linus Torvalds committed Dec 8, 2006
1 parent 20d2937 commit aab4c5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions arch/i386/kernel/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static ssize_t cpuid_read(struct file *file, char __user *buf,
char __user *tmp = buf;
u32 data[4];
u32 reg = *ppos;
int cpu = iminor(file->f_dentry->d_inode);
int cpu = iminor(file->f_path.dentry->d_inode);

if (count % 16)
return -EINVAL; /* Invalid chunk size */
Expand All @@ -134,7 +134,7 @@ static ssize_t cpuid_read(struct file *file, char __user *buf,

static int cpuid_open(struct inode *inode, struct file *file)
{
unsigned int cpu = iminor(file->f_dentry->d_inode);
unsigned int cpu = iminor(file->f_path.dentry->d_inode);
struct cpuinfo_x86 *c = &(cpu_data)[cpu];

if (cpu >= NR_CPUS || !cpu_online(cpu))
Expand Down
6 changes: 3 additions & 3 deletions arch/i386/kernel/msr.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static ssize_t msr_read(struct file *file, char __user * buf,
u32 __user *tmp = (u32 __user *) buf;
u32 data[2];
u32 reg = *ppos;
int cpu = iminor(file->f_dentry->d_inode);
int cpu = iminor(file->f_path.dentry->d_inode);
int err;

if (count % 8)
Expand All @@ -196,7 +196,7 @@ static ssize_t msr_write(struct file *file, const char __user *buf,
const u32 __user *tmp = (const u32 __user *)buf;
u32 data[2];
u32 reg = *ppos;
int cpu = iminor(file->f_dentry->d_inode);
int cpu = iminor(file->f_path.dentry->d_inode);
int err;

if (count % 8)
Expand All @@ -216,7 +216,7 @@ static ssize_t msr_write(struct file *file, const char __user *buf,

static int msr_open(struct inode *inode, struct file *file)
{
unsigned int cpu = iminor(file->f_dentry->d_inode);
unsigned int cpu = iminor(file->f_path.dentry->d_inode);
struct cpuinfo_x86 *c = &(cpu_data)[cpu];

if (cpu >= NR_CPUS || !cpu_online(cpu))
Expand Down

0 comments on commit aab4c5a

Please sign in to comment.