Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255027
b: refs/heads/master
c: b307d46
h: refs/heads/master
i:
  255025: 8e86bc4
  255023: 7996c75
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Jul 21, 2011
1 parent 5865425 commit 7e4b870
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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: cf6ace16a3cd8b728fb0afa68368fd40bbeae19f
refs/heads/master: b307d4655a71749ac3f91c6dbe33d28cc026ceeb
14 changes: 5 additions & 9 deletions trunk/fs/fscache/page.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,24 +976,20 @@ void __fscache_uncache_all_inode_pages(struct fscache_cookie *cookie,

pagevec_init(&pvec, 0);
next = 0;
while (next <= (loff_t)-1 &&
pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)
) {
do {
if (!pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE))
break;
for (i = 0; i < pagevec_count(&pvec); i++) {
struct page *page = pvec.pages[i];
pgoff_t page_index = page->index;

ASSERTCMP(page_index, >=, next);
next = page_index + 1;

next = page->index;
if (PageFsCache(page)) {
__fscache_wait_on_page_write(cookie, page);
__fscache_uncache_page(cookie, page);
}
}
pagevec_release(&pvec);
cond_resched();
}
} while (++next);

_leave("");
}
Expand Down

0 comments on commit 7e4b870

Please sign in to comment.