Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73819
b: refs/heads/master
c: d32ddd8
h: refs/heads/master
i:
  73817: 58c168c
  73815: a8ed15d
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Nov 15, 2007
1 parent 7bc33fc commit ab4e091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: a3474224e6a01924be40a8255636ea5522c1023a
refs/heads/master: d32ddd8f20e7d7a49c45c337c2079be03c77dc41
3 changes: 2 additions & 1 deletion trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ static void *slob_alloc(size_t size, gfp_t gfp, int align, int node)
/* Improve fragment distribution and reduce our average
* search time by starting our next search here. (see
* Knuth vol 1, sec 2.5, pg 449) */
if (free_slob_pages.next != prev->next)
if (prev != free_slob_pages.prev &&
free_slob_pages.next != prev->next)
list_move_tail(&free_slob_pages, prev->next);
break;
}
Expand Down

0 comments on commit ab4e091

Please sign in to comment.