diff options
author | Josef Sipek <jsipek@fsl.cs.sunysb.edu> | 2006-12-08 02:36:55 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 08:28:44 -0800 |
commit | a7113a966241b700aecc7b8cb326cecb62e3c4b2 (patch) | |
tree | b28920a82e7cad67ea6e55826e161ba0e4cf9782 /drivers/char/mem.c | |
parent | 6c648be6f4183775679c1f2cc4d094128f104fb2 (diff) | |
download | blackbird-op-linux-a7113a966241b700aecc7b8cb326cecb62e3c4b2.tar.gz blackbird-op-linux-a7113a966241b700aecc7b8cb326cecb62e3c4b2.zip |
[PATCH] struct path: convert char-drivers
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r-- | drivers/char/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index e67eef4867ba..089020e0ee5a 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -774,7 +774,7 @@ static loff_t memory_lseek(struct file * file, loff_t offset, int orig) { loff_t ret; - mutex_lock(&file->f_dentry->d_inode->i_mutex); + mutex_lock(&file->f_path.dentry->d_inode->i_mutex); switch (orig) { case 0: file->f_pos = offset; @@ -789,7 +789,7 @@ static loff_t memory_lseek(struct file * file, loff_t offset, int orig) default: ret = -EINVAL; } - mutex_unlock(&file->f_dentry->d_inode->i_mutex); + mutex_unlock(&file->f_path.dentry->d_inode->i_mutex); return ret; } |