int mpage_readpages(struct address_space *mapping, struct list_head *pages, unsigned nr_pages, get_block_t get_block)

struct bio *bio = NULL; unsigned page_idx; sector_t last_block_in_bio = 0; struct buffer_head map_bh; struct pagevec lru_pvec;


for (page_idx = 0; page_idx < nr_pages; page_idx++) {

struct page *page = list_entry(pages->prev, struct page, lru);

Each loop pass first adds the page to the address space-specific cache before a bio request is created to read the desired data for the block layer:

Continue reading here: Fsmpagec

Was this article helpful?

0 0