]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-generic/pgtable.h
mm: move vma_is_anonymous check within pmd_move_must_withdraw
[karo-tx-linux.git] / include / asm-generic / pgtable.h
index 41b95d82a18570db2a0032b044db1f84545db6f3..2065e81701fc2a5a36710a2b0964b34c740908ed 100644 (file)
@@ -652,18 +652,6 @@ static inline pmd_t pmd_read_atomic(pmd_t *pmdp)
 }
 #endif
 
-#ifndef pmd_move_must_withdraw
-static inline int pmd_move_must_withdraw(spinlock_t *new_pmd_ptl,
-                                        spinlock_t *old_pmd_ptl)
-{
-       /*
-        * With split pmd lock we also need to move preallocated
-        * PTE page table if new_pmd is on different PMD page table.
-        */
-       return new_pmd_ptl != old_pmd_ptl;
-}
-#endif
-
 /*
  * This function is meant to be used by sites walking pagetables with
  * the mmap_sem hold in read mode to protect against MADV_DONTNEED and