diff options
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/locks.c b/fs/locks.c index 0f3998291f78..0a4f50dfadfb 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -145,7 +145,6 @@ static DEFINE_SPINLOCK(file_lock_lock); | |||
145 | 145 | ||
146 | /* | 146 | /* |
147 | * Protects the two list heads above, plus the inode->i_flock list | 147 | * Protects the two list heads above, plus the inode->i_flock list |
148 | * FIXME: should use a spinlock, once lockd and ceph are ready. | ||
149 | */ | 148 | */ |
150 | void lock_flocks(void) | 149 | void lock_flocks(void) |
151 | { | 150 | { |
@@ -415,17 +414,7 @@ static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl, | |||
415 | fl->fl_ops = NULL; | 414 | fl->fl_ops = NULL; |
416 | fl->fl_lmops = NULL; | 415 | fl->fl_lmops = NULL; |
417 | 416 | ||
418 | switch (l->l_type) { | 417 | return assign_type(fl, l->l_type); |
419 | case F_RDLCK: | ||
420 | case F_WRLCK: | ||
421 | case F_UNLCK: | ||
422 | fl->fl_type = l->l_type; | ||
423 | break; | ||
424 | default: | ||
425 | return -EINVAL; | ||
426 | } | ||
427 | |||
428 | return (0); | ||
429 | } | 418 | } |
430 | #endif | 419 | #endif |
431 | 420 | ||