Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28938
b: refs/heads/master
c: 70af7c5
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Jun 23, 2006
1 parent 12be2a6 commit d59b76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 9637a5efd4fbe36164c5ce7f6a0ee68b2bf22b7f
refs/heads/master: 70af7c5c6492ef6ad137dbff6c4568c73edbcaf0
4 changes: 1 addition & 3 deletions trunk/mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,10 +772,8 @@ static int try_to_unuse(unsigned int type)
while (*swap_map > 1 && !retval &&
(p = p->next) != &start_mm->mmlist) {
mm = list_entry(p, struct mm_struct, mmlist);
if (atomic_inc_return(&mm->mm_users) == 1) {
atomic_dec(&mm->mm_users);
if (!atomic_inc_not_zero(&mm->mm_users))
continue;
}
spin_unlock(&mmlist_lock);
mmput(prev_mm);
prev_mm = mm;
Expand Down

0 comments on commit d59b76c

Please sign in to comment.