Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24876
b: refs/heads/master
c: 5ce2964
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Mar 31, 2006
1 parent a217706 commit b19055b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: da2e9e1ff40c863a12803c32209baaded3512433
refs/heads/master: 5ce29646ebe352587e3b3160d599010c5da1b9dd
15 changes: 3 additions & 12 deletions trunk/fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,9 @@ static void locks_release_private(struct file_lock *fl)
/* Free a lock which is not in use. */
static void locks_free_lock(struct file_lock *fl)
{
if (fl == NULL) {
BUG();
return;
}
if (waitqueue_active(&fl->fl_wait))
panic("Attempting to free lock with active wait queue");

if (!list_empty(&fl->fl_block))
panic("Attempting to free lock with active block list");

if (!list_empty(&fl->fl_link))
panic("Attempting to free lock on active lock list");
BUG_ON(waitqueue_active(&fl->fl_wait));
BUG_ON(!list_empty(&fl->fl_block));
BUG_ON(!list_empty(&fl->fl_link));

locks_release_private(fl);
kmem_cache_free(filelock_cache, fl);
Expand Down

0 comments on commit b19055b

Please sign in to comment.