Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16314
b: refs/heads/master
c: c484d41
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Jan 6, 2006
1 parent 7d821dc commit f6e0f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 161599ff39a3c3cdea0a1be05ac53accd2c45cdd
refs/heads/master: c484d41042e6ccb88089ca41e3b3eed1bafdae21
4 changes: 2 additions & 2 deletions trunk/mm/swap_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/pagemap.h>
#include <linux/buffer_head.h>
#include <linux/backing-dev.h>
#include <linux/pagevec.h>

#include <asm/pgtable.h>

Expand Down Expand Up @@ -272,12 +273,11 @@ void free_page_and_swap_cache(struct page *page)
*/
void free_pages_and_swap_cache(struct page **pages, int nr)
{
int chunk = 16;
struct page **pagep = pages;

lru_add_drain();
while (nr) {
int todo = min(chunk, nr);
int todo = min(nr, PAGEVEC_SIZE);
int i;

for (i = 0; i < todo; i++)
Expand Down

0 comments on commit f6e0f3d

Please sign in to comment.