Displaying 1 result from an estimated 1 matches for "delay_read".
Did you mean:
delay_pread
2012 Jul 12
3
[PATCH v2] Btrfs: improve multi-thread buffer read
...uct extent_io_tree *tree,
struct bio *bio = NULL;
unsigned page_idx;
unsigned long bio_flags = 0;
+ LIST_HEAD(page_pool);
+ struct pagelst *pagelst = NULL;
for (page_idx = 0; page_idx < nr_pages; page_idx++) {
struct page *page = list_entry(pages->prev, struct page, lru);
+ bool delay_read = true;
prefetchw(&page->flags);
list_del(&page->lru);
+
+ if (!pagelst)
+ pagelst = kmalloc(sizeof(*pagelst), GFP_NOFS);
+ if (!pagelst)
+ delay_read = false;
+
if (!add_to_page_cache_lru(page, mapping,
page->index, GFP_NOFS)) {
- __extent_read_full_page(t...