mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] remove invalidate_inode_pages()
Convert all calls to invalidate_inode_pages() into open-coded calls to invalidate_mapping_pages(). Leave the invalidate_inode_pages() wrapper in place for now, marked as deprecated. Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
54bc485522
commit
fc0ecff698
12 changed files with 18 additions and 16 deletions
|
|
@ -85,7 +85,7 @@ EXPORT_SYMBOL(cancel_dirty_page);
|
|||
*
|
||||
* We need to bale out if page->mapping is no longer equal to the original
|
||||
* mapping. This happens a) when the VM reclaimed the page while we waited on
|
||||
* its lock, b) when a concurrent invalidate_inode_pages got there first and
|
||||
* its lock, b) when a concurrent invalidate_mapping_pages got there first and
|
||||
* c) when tmpfs swizzles a page between a tmpfs inode and swapper_space.
|
||||
*/
|
||||
static void
|
||||
|
|
@ -106,7 +106,7 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
|
|||
}
|
||||
|
||||
/*
|
||||
* This is for invalidate_inode_pages(). That function can be called at
|
||||
* This is for invalidate_mapping_pages(). That function can be called at
|
||||
* any time, and is not supposed to throw away dirty pages. But pages can
|
||||
* be marked dirty at any time too, so use remove_mapping which safely
|
||||
* discards clean, unused pages.
|
||||
|
|
|
|||
Loading…
Reference in a new issue