Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37630
b: refs/heads/master
c: f5579f8
h: refs/heads/master
v: v3
  • Loading branch information
Josef 'Jeff' Sipek authored and Linus Torvalds committed Oct 1, 2006
1 parent 544843b commit c889f05
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: 4636d93b461779cd95156cc5f5d53690a5d6a07b
refs/heads/master: f5579f8c7d7e2c9eb62b566c511b21091a778157
12 changes: 6 additions & 6 deletions trunk/fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,13 @@ static int flock_to_posix_lock(struct file *filp, struct file_lock *fl,
off_t start, end;

switch (l->l_whence) {
case 0: /*SEEK_SET*/
case SEEK_SET:
start = 0;
break;
case 1: /*SEEK_CUR*/
case SEEK_CUR:
start = filp->f_pos;
break;
case 2: /*SEEK_END*/
case SEEK_END:
start = i_size_read(filp->f_dentry->d_inode);
break;
default:
Expand Down Expand Up @@ -364,13 +364,13 @@ static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl,
loff_t start;

switch (l->l_whence) {
case 0: /*SEEK_SET*/
case SEEK_SET:
start = 0;
break;
case 1: /*SEEK_CUR*/
case SEEK_CUR:
start = filp->f_pos;
break;
case 2: /*SEEK_END*/
case SEEK_END:
start = i_size_read(filp->f_dentry->d_inode);
break;
default:
Expand Down

0 comments on commit c889f05

Please sign in to comment.