Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212983
b: refs/heads/master
c: ab91261
h: refs/heads/master
i:
  212981: 811fe6b
  212979: 172a2c9
  212975: 7652ec5
v: v3
  • Loading branch information
Arnd Bergmann committed Oct 15, 2010
1 parent ec0a026 commit 8d2beff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6038f373a3dc1f1c26496e60b6c40b164716f07e
refs/heads/master: ab91261f5c43f196ec7ff1d113847b87b7606b26
4 changes: 2 additions & 2 deletions trunk/fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ loff_t default_llseek(struct file *file, loff_t offset, int origin)
{
loff_t retval;

lock_kernel();
mutex_lock(&file->f_dentry->d_inode->i_mutex);
switch (origin) {
case SEEK_END:
offset += i_size_read(file->f_path.dentry->d_inode);
Expand All @@ -145,7 +145,7 @@ loff_t default_llseek(struct file *file, loff_t offset, int origin)
retval = offset;
}
out:
unlock_kernel();
mutex_unlock(&file->f_dentry->d_inode->i_mutex);
return retval;
}
EXPORT_SYMBOL(default_llseek);
Expand Down

0 comments on commit 8d2beff

Please sign in to comment.