Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29629
b: refs/heads/master
c: 9f1a3cf
h: refs/heads/master
i:
  29627: 1b146fd
v: v3
  • Loading branch information
Zach Brown authored and Linus Torvalds committed Jun 25, 2006
1 parent b035731 commit 105b5ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 09a9a45dc62fef5f46a0dc98a3cefdb464cc4aaa
refs/heads/master: 9f1a3cfcffaed2fbb3206179295c79ca8289f5c3
13 changes: 5 additions & 8 deletions trunk/mm/readahead.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,11 @@ static int read_pages(struct address_space *mapping, struct file *filp,
list_del(&page->lru);
if (!add_to_page_cache(page, mapping,
page->index, GFP_KERNEL)) {
ret = mapping->a_ops->readpage(filp, page);
if (ret != AOP_TRUNCATED_PAGE) {
if (!pagevec_add(&lru_pvec, page))
__pagevec_lru_add(&lru_pvec);
continue;
} /* else fall through to release */
}
page_cache_release(page);
mapping->a_ops->readpage(filp, page);
if (!pagevec_add(&lru_pvec, page))
__pagevec_lru_add(&lru_pvec);
} else
page_cache_release(page);
}
pagevec_lru_add(&lru_pvec);
ret = 0;
Expand Down

0 comments on commit 105b5ca

Please sign in to comment.