Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54546
b: refs/heads/master
c: 7b8e892
h: refs/heads/master
v: v3
  • Loading branch information
Chris Snook authored and Linus Torvalds committed May 8, 2007
1 parent 4d7f14a commit 16c6fa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 5b7952021289b6d04d8c62c0f13acce570730dcd
refs/heads/master: 7b8e89249ba54fb6e12358bbed7e3070fa1d1e6a
12 changes: 6 additions & 6 deletions trunk/fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ loff_t generic_file_llseek(struct file *file, loff_t offset, int origin)

mutex_lock(&inode->i_mutex);
switch (origin) {
case 2:
case SEEK_END:
offset += inode->i_size;
break;
case 1:
case SEEK_CUR:
offset += file->f_pos;
}
retval = -EINVAL;
Expand All @@ -63,10 +63,10 @@ loff_t remote_llseek(struct file *file, loff_t offset, int origin)

lock_kernel();
switch (origin) {
case 2:
case SEEK_END:
offset += i_size_read(file->f_path.dentry->d_inode);
break;
case 1:
case SEEK_CUR:
offset += file->f_pos;
}
retval = -EINVAL;
Expand Down Expand Up @@ -94,10 +94,10 @@ loff_t default_llseek(struct file *file, loff_t offset, int origin)

lock_kernel();
switch (origin) {
case 2:
case SEEK_END:
offset += i_size_read(file->f_path.dentry->d_inode);
break;
case 1:
case SEEK_CUR:
offset += file->f_pos;
}
retval = -EINVAL;
Expand Down

0 comments on commit 16c6fa7

Please sign in to comment.