mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] VFS,fs/locks.c: cleanup locks_insert_block
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]>
This commit is contained in:
parent
fa3536cc14
commit
6dc0fe8f8b
1 changed files with 1 additions and 6 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue