diff options
author | 2016-12-12 16:42:43 -0800 | |
---|---|---|
committer | 2016-12-12 18:55:07 -0800 | |
commit | 692a68c1544d6be4ba7c6e929e9c7b2ba0447b91 (patch) | |
tree | a8d1ee7cb797cb64a260c229b8ce67926657166a /arch/um/include/asm | |
parent | mm: add tlb_remove_check_page_size_change to track page size change (diff) | |
download | linux-692a68c1544d6be4ba7c6e929e9c7b2ba0447b91.tar.gz linux-692a68c1544d6be4ba7c6e929e9c7b2ba0447b91.tar.bz2 linux-692a68c1544d6be4ba7c6e929e9c7b2ba0447b91.zip |
mm: remove the page size change check in tlb_remove_page
Now that we check for page size change early in the loop, we can
partially revert e9d55e157034a ("mm: change the interface for
__tlb_remove_page").
This simplies the code much, by removing the need to track the last
address with which we adjusted the range. We also go back to the older
way of filling the mmu_gather array, ie, we add an entry and then check
whether the gather batch is full.
Link: http://lkml.kernel.org/r/20161026084839.27299-6-aneesh.kumar@linux.vnet.ibm.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include/asm')
-rw-r--r-- | arch/um/include/asm/tlb.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/um/include/asm/tlb.h b/arch/um/include/asm/tlb.h index 8258dd4bb13c..600a2e9bfee2 100644 --- a/arch/um/include/asm/tlb.h +++ b/arch/um/include/asm/tlb.h @@ -116,12 +116,6 @@ static inline bool __tlb_remove_page_size(struct mmu_gather *tlb, return __tlb_remove_page(tlb, page); } -static inline bool __tlb_remove_pte_page(struct mmu_gather *tlb, - struct page *page) -{ - return __tlb_remove_page(tlb, page); -} - static inline void tlb_remove_page_size(struct mmu_gather *tlb, struct page *page, int page_size) { |