Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions mm/readahead.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping)
}
EXPORT_SYMBOL_GPL(file_ra_state_init);

/**
* read_pages() - Start IO for a contiguous range of allocated folios in the
* page cache.
* @rac: Readahead control.
*
* When read_pages() returns, it is guaranteed that all of the folios will have
* been processed or removed so that ``readahead_count(rac) == 0``. However,
* that does not imply that ``readahead_index(rac)`` will be updated to point
* to the end of the originally requested range because, for example, the
* filesystem may expand the range upwards.
*/
static void read_pages(struct readahead_control *rac)
{
const struct address_space_operations *aops = rac->mapping->a_ops;
Expand Down
Loading