We can just pass a NULL filler and do the right thing inside of do_read_cache_page based on the NULL parameter.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -383,8 +383,7 @@ extern int read_cache_pages(struct address_space *mapping, · 382 unmodified lines | ||
| 383 | 383 | static inline struct page *read_mapping_page(struct address_space *mapping, |
| 384 | 384 | pgoff_t index, void *data) |
| 385 | 385 | { |
| 386 | − filler_t *filler = (filler_t *)mapping->a_ops->readpage; | |
| 387 | − return read_cache_page(mapping, index, filler, data); | |
| 386 | + return read_cache_page(mapping, index, NULL, data); | |
| 388 | 387 | } |
| 389 | 388 | |
| 390 | 389 | /* |