Lines Matching refs:mapping

48 static inline void mapping_set_error(struct address_space *mapping, int error)  in mapping_set_error()  argument
54 filemap_set_wb_err(mapping, error); in mapping_set_error()
58 set_bit(AS_ENOSPC, &mapping->flags); in mapping_set_error()
60 set_bit(AS_EIO, &mapping->flags); in mapping_set_error()
63 static inline void mapping_set_unevictable(struct address_space *mapping) in mapping_set_unevictable() argument
65 set_bit(AS_UNEVICTABLE, &mapping->flags); in mapping_set_unevictable()
68 static inline void mapping_clear_unevictable(struct address_space *mapping) in mapping_clear_unevictable() argument
70 clear_bit(AS_UNEVICTABLE, &mapping->flags); in mapping_clear_unevictable()
73 static inline int mapping_unevictable(struct address_space *mapping) in mapping_unevictable() argument
75 if (mapping) in mapping_unevictable()
76 return test_bit(AS_UNEVICTABLE, &mapping->flags); in mapping_unevictable()
77 return !!mapping; in mapping_unevictable()
80 static inline void mapping_set_exiting(struct address_space *mapping) in mapping_set_exiting() argument
82 set_bit(AS_EXITING, &mapping->flags); in mapping_set_exiting()
85 static inline int mapping_exiting(struct address_space *mapping) in mapping_exiting() argument
87 return test_bit(AS_EXITING, &mapping->flags); in mapping_exiting()
90 static inline void mapping_set_no_writeback_tags(struct address_space *mapping) in mapping_set_no_writeback_tags() argument
92 set_bit(AS_NO_WRITEBACK_TAGS, &mapping->flags); in mapping_set_no_writeback_tags()
95 static inline int mapping_use_writeback_tags(struct address_space *mapping) in mapping_use_writeback_tags() argument
97 return !test_bit(AS_NO_WRITEBACK_TAGS, &mapping->flags); in mapping_use_writeback_tags()
100 static inline gfp_t mapping_gfp_mask(struct address_space * mapping) in mapping_gfp_mask() argument
102 return mapping->gfp_mask; in mapping_gfp_mask()
106 static inline gfp_t mapping_gfp_constraint(struct address_space *mapping, in mapping_gfp_constraint() argument
109 return mapping_gfp_mask(mapping) & gfp_mask; in mapping_gfp_constraint()
231 pgoff_t page_cache_next_miss(struct address_space *mapping,
233 pgoff_t page_cache_prev_miss(struct address_space *mapping,
244 struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,
257 static inline struct page *find_get_page(struct address_space *mapping, in find_get_page() argument
260 return pagecache_get_page(mapping, offset, 0, 0); in find_get_page()
263 static inline struct page *find_get_page_flags(struct address_space *mapping, in find_get_page_flags() argument
266 return pagecache_get_page(mapping, offset, fgp_flags, 0); in find_get_page_flags()
282 static inline struct page *find_lock_page(struct address_space *mapping, in find_lock_page() argument
285 return pagecache_get_page(mapping, offset, FGP_LOCK, 0); in find_lock_page()
307 static inline struct page *find_or_create_page(struct address_space *mapping, in find_or_create_page() argument
310 return pagecache_get_page(mapping, offset, in find_or_create_page()
328 static inline struct page *grab_cache_page_nowait(struct address_space *mapping, in grab_cache_page_nowait() argument
331 return pagecache_get_page(mapping, index, in grab_cache_page_nowait()
333 mapping_gfp_mask(mapping)); in grab_cache_page_nowait()
346 struct page *find_get_entry(struct address_space *mapping, pgoff_t offset);
347 struct page *find_lock_entry(struct address_space *mapping, pgoff_t offset);
348 unsigned find_get_entries(struct address_space *mapping, pgoff_t start,
351 unsigned find_get_pages_range(struct address_space *mapping, pgoff_t *start,
354 static inline unsigned find_get_pages(struct address_space *mapping, in find_get_pages() argument
358 return find_get_pages_range(mapping, start, (pgoff_t)-1, nr_pages, in find_get_pages()
361 unsigned find_get_pages_contig(struct address_space *mapping, pgoff_t start,
363 unsigned find_get_pages_range_tag(struct address_space *mapping, pgoff_t *index,
366 static inline unsigned find_get_pages_tag(struct address_space *mapping, in find_get_pages_tag() argument
370 return find_get_pages_range_tag(mapping, index, (pgoff_t)-1, tag, in find_get_pages_tag()
374 struct page *grab_cache_page_write_begin(struct address_space *mapping,
380 static inline struct page *grab_cache_page(struct address_space *mapping, in grab_cache_page() argument
383 return find_or_create_page(mapping, index, mapping_gfp_mask(mapping)); in grab_cache_page()
386 extern struct page * read_cache_page(struct address_space *mapping,
388 extern struct page * read_cache_page_gfp(struct address_space *mapping,
390 extern int read_cache_pages(struct address_space *mapping,
393 static inline struct page *read_mapping_page(struct address_space *mapping, in read_mapping_page() argument
396 return read_cache_page(mapping, index, NULL, data); in read_mapping_page()
607 int add_to_page_cache_locked(struct page *page, struct address_space *mapping,
609 int add_to_page_cache_lru(struct page *page, struct address_space *mapping,
614 void delete_from_page_cache_batch(struct address_space *mapping,
622 struct address_space *mapping, pgoff_t offset, gfp_t gfp_mask) in add_to_page_cache() argument
627 error = add_to_page_cache_locked(page, mapping, offset, gfp_mask); in add_to_page_cache()