kernels/linux-2.4.0/mm/filemap.c
/* Called with mm->page_table_lock held to protect against other
 * threads/the swapper from ripping pte's out from under us.
 */
Called with mm->page_table_lock held to protect against other
threads/the swapper from ripping pte's out from under us.
Called with mm - > page_table_lock held to protect against other threads / the swapper from ripping pte ' s out from under us .
static inline int filemap_sync_pte(pte_t * ptep, struct vm_area_struct *vma,
	unsigned long address, unsigned int flags)
{
	pte_t pte = *ptep;
	if (pte_present(pte) && ptep_test_and_clear_dirty(ptep)) {
		struct page *page = pte_page(pte);
		flush_tlb_page(vma, address);
		set_page_dirty(page);
	}
	return 0;
}
static inline int filemap_sync_pte ( pte_t * ptep , struct vm_area_struct * vma , unsigned long address , unsigned int flags ) { pte_t pte = * ptep ; if ( pte_present ( pte ) && ptep_test_and_clear_dirty ( ptep ) ) { struct page * page = pte_page ( pte ) ; flush_tlb_page ( vma , address ) ; set_page_dirty ( page ) ; } return 0 ; }
Called with mm->page_table_lock held to protect against other
 threads/the swapper from ripping pte's out from under us.
Called with mm - > page_table_lock held to protect against other threads / the swapper from ripping pte ' s out from under us .