Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154588
b: refs/heads/master
c: c495682
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jul 1, 2009
1 parent 8db54c7 commit 05c7cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 4d6c13f87db12ae1ce35ea6a15688ac72419b133
refs/heads/master: c49568235dd7b4a2ffad63aa950562f4ffb9455f
2 changes: 2 additions & 0 deletions trunk/mm/dmapool.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ show_pools(struct device *dev, struct device_attribute *attr, char *buf)
unsigned pages = 0;
unsigned blocks = 0;

spin_lock_irq(&pool->lock);
list_for_each_entry(page, &pool->page_list, page_list) {
pages++;
blocks += page->in_use;
}
spin_unlock_irq(&pool->lock);

/* per-pool info, no real statistics yet */
temp = scnprintf(next, size, "%-16s %4u %4Zu %4Zu %2u\n",
Expand Down

0 comments on commit 05c7cb3

Please sign in to comment.