kernels/linux-2.4.0/mm/filemap.c
/*
 * This adds a page to the page cache, starting out as locked,
 * owned by us, but unreferenced, not uptodate and with no errors.
 */
This adds a page to the page cache, starting out as locked,
owned by us, but unreferenced, not uptodate and with no errors.
This adds a page to the page cache starting out as locked owned by us but unreferenced not uptodate and with no errors .
static inline void __add_to_page_cache(struct page * page,
	struct address_space *mapping, unsigned long offset,
	struct page **hash)
{
	unsigned long flags;
	if (PageLocked(page))
		BUG();
	flags = page->flags & ~((1 << PG_uptodate) | (1 << PG_error) | (1 << PG_dirty) | (1 << PG_referenced) | (1 << PG_arch_1));
	page->flags = flags | (1 << PG_locked);
	page_cache_get(page);
	page->index = offset;
	add_page_to_inode_queue(mapping, page);
	add_page_to_hash_queue(page, hash);
	lru_cache_add(page);
}
static inline void __add_to_page_cache ( struct page * page , struct address_space * mapping , unsigned long offset , struct page * * hash ) { unsigned long flags ; if ( PageLocked ( page ) ) BUG ( ) ; flags = page -> flags & ~ ( ( 1 << PG_uptodate ) | ( 1 << PG_error ) | ( 1 << PG_dirty ) | ( 1 << PG_referenced ) | ( 1 << PG_arch_1 ) ) ; page -> flags = flags | ( 1 << PG_locked ) ; page_cache_get ( page ) ; page -> index = offset ; add_page_to_inode_queue ( mapping , page ) ; add_page_to_hash_queue ( page , hash ) ; lru_cache_add ( page ) ; }
This adds a page to the page cache, starting out as locked,
 owned by us, but unreferenced, not uptodate and with no errors.
This adds a page to the page cache starting out as locked owned by us but unreferenced not uptodate and with no errors .