Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 630
b: refs/heads/master
c: edfbe2b
h: refs/heads/master
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed May 1, 2005
1 parent 2ab14f6 commit 9d20fb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2054606ad6dd6fee559fe790f190b15ed9355237
refs/heads/master: edfbe2b0038723e5699ab22695ccd62b5542a5c1
1 change: 1 addition & 0 deletions trunk/include/linux/page-flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ struct page_state {
unsigned long allocstall; /* direct reclaim calls */

unsigned long pgrotated; /* pages rotated to tail of the LRU */
unsigned long nr_bounce; /* pages for bounce buffers */
};

extern void get_page_state(struct page_state *ret);
Expand Down
2 changes: 2 additions & 0 deletions trunk/mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ static void bounce_end_io(struct bio *bio, mempool_t *pool, int err)
continue;

mempool_free(bvec->bv_page, pool);
dec_page_state(nr_bounce);
}

bio_endio(bio_orig, bio_orig->bi_size, err);
Expand Down Expand Up @@ -405,6 +406,7 @@ static void __blk_queue_bounce(request_queue_t *q, struct bio **bio_orig,
to->bv_page = mempool_alloc(pool, q->bounce_gfp);
to->bv_len = from->bv_len;
to->bv_offset = from->bv_offset;
inc_page_state(nr_bounce);

if (rw == WRITE) {
char *vto, *vfrom;
Expand Down
1 change: 1 addition & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1897,6 +1897,7 @@ static char *vmstat_text[] = {
"allocstall",

"pgrotated",
"nr_bounce",
};

static void *vmstat_start(struct seq_file *m, loff_t *pos)
Expand Down

0 comments on commit 9d20fb8

Please sign in to comment.