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
16#include <linux/hardirq.h> /* for in_interrupt() */16#include <linux/hardirq.h> /* for in_interrupt() */
17#include <linux/hugetlb_inline.h>17#include <linux/hugetlb_inline.h>
18 18
19struct pagevec;19struct folio_batch;
20 20
21static inline bool mapping_empty(struct address_space *mapping)21static inline bool mapping_empty(struct address_space *mapping)
22{22{
@@ -936,7 +936,7 @@ static inline void __delete_from_page_cache(struct page *page, void *shadow) · 913 unmodified lines
936}936}
937void replace_page_cache_page(struct page *old, struct page *new);937void replace_page_cache_page(struct page *old, struct page *new);
938void delete_from_page_cache_batch(struct address_space *mapping,938void delete_from_page_cache_batch(struct address_space *mapping,
939 struct pagevec *pvec);939 struct folio_batch *fbatch);
940int try_to_release_page(struct page *page, gfp_t gfp);940int try_to_release_page(struct page *page, gfp_t gfp);
941bool filemap_release_folio(struct folio *folio, gfp_t gfp);941bool filemap_release_folio(struct folio *folio, gfp_t gfp);
942loff_t mapping_seek_hole_data(struct address_space *, loff_t start, loff_t end,942loff_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