kernels/linux-2.4.0/mm/filemap.c
/*
 * Later we can get more picky about what "in core" means precisely.
 * For now, simply check to see if the page is in the page cache,
 * and is up to date; i.e. that no page-in operation would be required
 * at this time if an application were to map and access this page.
 */
Later we can get more picky about what "in core" means precisely.
For now, simply check to see if the page is in the page cache,
and is up to date; i.e. that no page-in operation would be required
at this time if an application were to map and access this page.
Later we can get more picky about what " in core " means precisely . For now simply check to see if the page is in the page cache and is up to date ; i . e . that no page - in operation would be required at this time if an application were to map and access this page .
static unsigned char mincore_page(struct vm_area_struct * vma,
	unsigned long pgoff)
{
	unsigned char present = 0;
	struct address_space * as = &vma->vm_file->f_dentry->d_inode->i_data;
	struct page * page, ** hash = page_hash(as, pgoff);
	spin_lock(&pagecache_lock);
	page = __find_page_nolock(as, pgoff, *hash);
	if ((page) && (Page_Uptodate(page)))
		present = 1;
	spin_unlock(&pagecache_lock);
	return present;
}
static unsigned char mincore_page ( struct vm_area_struct * vma , unsigned long pgoff ) { unsigned char present = 0 ; struct address_space * as = & vma -> vm_file -> f_dentry -> d_inode -> i_data ; struct page * page , * * hash = page_hash ( as , pgoff ) ; spin_lock ( & pagecache_lock ) ; page = __find_page_nolock ( as , pgoff , * hash ) ; if ( ( page ) && ( Page_Uptodate ( page ) ) ) present = 1 ; spin_unlock ( & pagecache_lock ) ; return present ; }
Later we can get more picky about what "in core" means precisely.
Later we can get more picky about what " in core " means precisely .