History

mm/filemap: don't cast ->readpage to filler_t for do_read_cache_page

We can just pass a NULL filler and do the right thing inside of do_read_cache_page based on the NULL parameter.

Christoph Hellwig committed 7 years ago

Commit 6c45b451 parent d322a8e2 files · +7 −6Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/pagemap.h+1−2
@@ -383,8 +383,7 @@ extern int read_cache_pages(struct address_space *mapping, · 382 unmodified lines
383383 static inline struct page *read_mapping_page(struct address_space *mapping,
384384 pgoff_t index, void *data)
385385 {
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);
388387 }
389388
390389 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t