Skip to content

Commit

Permalink
[PATCH] VFS,fs/locks.c: cleanup locks_insert_block
Browse files Browse the repository at this point in the history
BUG instead of handling a case that should never happen.

Signed-off-by: J. Bruce Fields <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
bfields authored and Linus Torvalds committed Mar 26, 2006
1 parent fa3536c commit 6dc0fe8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,12 +533,7 @@ static void locks_delete_block(struct file_lock *waiter)
static void locks_insert_block(struct file_lock *blocker,
struct file_lock *waiter)
{
if (!list_empty(&waiter->fl_block)) {
printk(KERN_ERR "locks_insert_block: removing duplicated lock "
"(pid=%d %Ld-%Ld type=%d)\n", waiter->fl_pid,
waiter->fl_start, waiter->fl_end, waiter->fl_type);
__locks_delete_block(waiter);
}
BUG_ON(!list_empty(&waiter->fl_block));
list_add_tail(&waiter->fl_block, &blocker->fl_block);
waiter->fl_next = blocker;
if (IS_POSIX(blocker))
Expand Down

0 comments on commit 6dc0fe8

Please sign in to comment.