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 | static inline struct page *read_mapping_page(struct address_space *mapping, | 383 | static inline struct page *read_mapping_page(struct address_space *mapping, |
| 384 | pgoff_t index, void *data) | 384 | pgoff_t index, void *data) |
| 385 | { | 385 | { |
| 386 | filler_t *filler = (filler_t *)mapping->a_ops->readpage; | 386 | return read_cache_page(mapping, index, NULL, data); |
| 387 | return read_cache_page(mapping, index, filler, data); | ||
| 388 | } | 387 | } |
| 389 | 388 | ||
| 390 | /* | 389 | /* |