kernels/linux-2.4.0/mm/filemap.c
/*
 * Returns locked page at given index in given cache, creating it if needed.
 */
Returns locked page at given index in given cache, creating it if needed.
Returns locked page at given index in given cache creating it if needed .
struct page *grab_cache_page(struct address_space *mapping, unsigned long index)
{
	struct page *cached_page = NULL;
	struct page *page = __grab_cache_page(mapping,index,&cached_page);
	if (cached_page)
		page_cache_free(cached_page);
	return page;
}
struct page * grab_cache_page ( struct address_space * mapping , unsigned long index ) { struct page * cached_page = NULL ; struct page * page = __grab_cache_page ( mapping , index , & cached_page ) ; if ( cached_page ) page_cache_free ( cached_page ) ; return page ; }
Returns locked page at given index in given cache, creating it if needed.
Returns locked page at given index in given cache creating it if needed .