Home | History | Annotate | Download | only in linux

Lines Matching full:page

16  * Bits in mapping->flags.  The lower __GFP_BITS_SHIFT bits are the page
38 * The page cache can done in larger chunks than
39 * one page, because it allows for more efficient
50 #define page_cache_get(page) get_page(page)
51 #define page_cache_release(page) put_page(page)
52 void release_pages(struct page **pages, int nr, int cold);
55 extern struct page *page_cache_alloc(struct address_space *x);
56 extern struct page *page_cache_alloc_cold(struct address_space *x);
58 static inline struct page *page_cache_alloc(struct address_space *x)
63 static inline struct page *page_cache_alloc_cold(struct address_space *x)
69 typedef int filler_t(void *, struct page *);
71 extern struct page * find_get_page(struct address_space *mapping,
73 extern struct page * find_lock_page(struct address_space *mapping,
75 extern __deprecated_for_modules struct page * find_trylock_page(
77 extern struct page * find_or_create_page(struct address_space *mapping,
80 unsigned int nr_pages, struct page **pages);
82 unsigned int nr_pages, struct page **pages);
84 int tag, unsigned int nr_pages, struct page **pages);
87 * Returns locked page at given index in given cache, creating it if needed.
89 static inline struct page *grab_cache_page(struct address_space *mapping, unsigned long index)
94 extern struct page * grab_cache_page_nowait(struct address_space *mapping,
96 extern struct page * read_cache_page(struct address_space *mapping,
102 static inline struct page *read_mapping_page(struct address_space *mapping,
109 int add_to_page_cache(struct page *page, struct address_space *mapping,
111 int add_to_page_cache_lru(struct page *page, struct address_space *mapping,
113 extern void remove_from_page_cache(struct page *page);
114 extern void __remove_from_page_cache(struct page *page);
117 * Return byte-offset into filesystem object for page.
119 static inline loff_t page_offset(struct page *page)
121 return ((loff_t)page->index) << PAGE_CACHE_SHIFT;
132 extern void FASTCALL(__lock_page(struct page *page));
133 extern void FASTCALL(unlock_page(struct page *page));
135 static inline void lock_page(struct page *page)
138 if (TestSetPageLocked(page))
139 __lock_page(page);
146 extern void FASTCALL(wait_on_page_bit(struct page *page, int bit_nr));
149 * Wait for a page to be unlocked.
151 * This must be called with the caller "holding" the page,
152 * ie with increased "page->count" so that the page won't
155 static inline void wait_on_page_locked(struct page *page)
157 if (PageLocked(page))
158 wait_on_page_bit(page, PG_locked);
162 * Wait for a page to complete writeback
164 static inline void wait_on_page_writeback(struct page *page)
166 if (PageWriteback(page))
167 wait_on_page_bit(page, PG_writeback);
170 extern void end_page_writeback(struct page *page);
173 * Fault a userspace page into pagetables. Return non-zero on a fault.
191 * If the page was already mapped, this will get a cache miss