Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commitc0c379e

Browse files
kiryltorvalds
authored andcommitted
mm: drop unused pmdp_huge_get_and_clear_notify()
Dave noticed that after fixing MADV_DONTNEED vs numa balancing race thelast pmdp_huge_get_and_clear_notify() user is gone.Let's drop the helper.Link:http://lkml.kernel.org/r/20170306112047.24809-1-kirill.shutemov@linux.intel.comSigned-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>Cc: Dave Hansen <dave.hansen@intel.com>Cc: <stable@vger.kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parentced1080 commitc0c379e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

‎include/linux/mmu_notifier.h‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -394,18 +394,6 @@ static inline void mmu_notifier_mm_destroy(struct mm_struct *mm)
394394
___pud;\
395395
})
396396

397-
#definepmdp_huge_get_and_clear_notify(__mm,__haddr,__pmd)\
398-
({\
399-
unsigned long ___haddr = __haddr & HPAGE_PMD_MASK;\
400-
pmd_t ___pmd;\
401-
\
402-
___pmd = pmdp_huge_get_and_clear(__mm, __haddr, __pmd);\
403-
mmu_notifier_invalidate_range(__mm, ___haddr,\
404-
___haddr + HPAGE_PMD_SIZE);\
405-
\
406-
___pmd;\
407-
})
408-
409397
/*
410398
* set_pte_at_notify() sets the pte _after_ running the notifier.
411399
* This is safe to start by updating the secondary MMUs, because the primary MMU
@@ -489,7 +477,6 @@ static inline void mmu_notifier_mm_destroy(struct mm_struct *mm)
489477
#defineptep_clear_flush_notify ptep_clear_flush
490478
#definepmdp_huge_clear_flush_notify pmdp_huge_clear_flush
491479
#definepudp_huge_clear_flush_notify pudp_huge_clear_flush
492-
#definepmdp_huge_get_and_clear_notify pmdp_huge_get_and_clear
493480
#defineset_pte_at_notify set_pte_at
494481

495482
#endif/* CONFIG_MMU_NOTIFIER */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp