History

mm: Convert find_lock_entries() to use a folio_batch

find_lock_entries() already only returned the head page of folios, so convert it to return a folio_batch instead of a pagevec. That cascades through converting truncate_inode_pages_range() to delete_from_page_cache_batch() and page_cache_delete_batch().

Matthew Wilcox (Oracle) committed 4 years ago

Commit 51dcbda1 parent 0e499ed6 files · +69 −80Browse files

Showing the changes to include (1 of 6 files). Show all

Unified · Split

include/linux/pagemap.h+2−2
@@ -16,7 +16,7 @@ · 15 unmodified lines
1616 #include <linux/hardirq.h> /* for in_interrupt() */
1717 #include <linux/hugetlb_inline.h>
1818
19−struct pagevec;
19+struct folio_batch;
2020
2121 static inline bool mapping_empty(struct address_space *mapping)
2222 {
@@ -936,7 +936,7 @@ static inline void __delete_from_page_cache(struct page *page, void *shadow) · 913 unmodified lines
936936 }
937937 void replace_page_cache_page(struct page *old, struct page *new);
938938 void delete_from_page_cache_batch(struct address_space *mapping,
939− struct pagevec *pvec);
939+ struct folio_batch *fbatch);
940940 int try_to_release_page(struct page *page, gfp_t gfp);
941941 bool filemap_release_folio(struct folio *folio, gfp_t gfp);
942942 loff_t mapping_seek_hole_data(struct address_space *, loff_t start, loff_t end,

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