diff options
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 7ea069cd3257..4b3736f7065c 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
@@ -251,7 +251,7 @@ pgoff_t page_cache_prev_hole(struct address_space *mapping, | |||
251 | #define FGP_NOWAIT 0x00000020 | 251 | #define FGP_NOWAIT 0x00000020 |
252 | 252 | ||
253 | struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset, | 253 | struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset, |
254 | int fgp_flags, gfp_t cache_gfp_mask, gfp_t radix_gfp_mask); | 254 | int fgp_flags, gfp_t cache_gfp_mask); |
255 | 255 | ||
256 | /** | 256 | /** |
257 | * find_get_page - find and get a page reference | 257 | * find_get_page - find and get a page reference |
@@ -266,13 +266,13 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset, | |||
266 | static inline struct page *find_get_page(struct address_space *mapping, | 266 | static inline struct page *find_get_page(struct address_space *mapping, |
267 | pgoff_t offset) | 267 | pgoff_t offset) |
268 | { | 268 | { |
269 | return pagecache_get_page(mapping, offset, 0, 0, 0); | 269 | return pagecache_get_page(mapping, offset, 0, 0); |
270 | } | 270 | } |
271 | 271 | ||
272 | static inline struct page *find_get_page_flags(struct address_space *mapping, | 272 | static inline struct page *find_get_page_flags(struct address_space *mapping, |
273 | pgoff_t offset, int fgp_flags) | 273 | pgoff_t offset, int fgp_flags) |
274 | { | 274 | { |
275 | return pagecache_get_page(mapping, offset, fgp_flags, 0, 0); | 275 | return pagecache_get_page(mapping, offset, fgp_flags, 0); |
276 | } | 276 | } |
277 | 277 | ||
278 | /** | 278 | /** |
@@ -292,7 +292,7 @@ static inline struct page *find_get_page_flags(struct address_space *mapping, | |||
292 | static inline struct page *find_lock_page(struct address_space *mapping, | 292 | static inline struct page *find_lock_page(struct address_space *mapping, |
293 | pgoff_t offset) | 293 | pgoff_t offset) |
294 | { | 294 | { |
295 | return pagecache_get_page(mapping, offset, FGP_LOCK, 0, 0); | 295 | return pagecache_get_page(mapping, offset, FGP_LOCK, 0); |
296 | } | 296 | } |
297 | 297 | ||
298 | /** | 298 | /** |
@@ -319,7 +319,7 @@ static inline struct page *find_or_create_page(struct address_space *mapping, | |||
319 | { | 319 | { |
320 | return pagecache_get_page(mapping, offset, | 320 | return pagecache_get_page(mapping, offset, |
321 | FGP_LOCK|FGP_ACCESSED|FGP_CREAT, | 321 | FGP_LOCK|FGP_ACCESSED|FGP_CREAT, |
322 | gfp_mask, gfp_mask & GFP_RECLAIM_MASK); | 322 | gfp_mask); |
323 | } | 323 | } |
324 | 324 | ||
325 | /** | 325 | /** |
@@ -340,8 +340,7 @@ static inline struct page *grab_cache_page_nowait(struct address_space *mapping, | |||
340 | { | 340 | { |
341 | return pagecache_get_page(mapping, index, | 341 | return pagecache_get_page(mapping, index, |
342 | FGP_LOCK|FGP_CREAT|FGP_NOFS|FGP_NOWAIT, | 342 | FGP_LOCK|FGP_CREAT|FGP_NOFS|FGP_NOWAIT, |
343 | mapping_gfp_mask(mapping), | 343 | mapping_gfp_mask(mapping)); |
344 | GFP_NOFS); | ||
345 | } | 344 | } |
346 | 345 | ||
347 | struct page *find_get_entry(struct address_space *mapping, pgoff_t offset); | 346 | struct page *find_get_entry(struct address_space *mapping, pgoff_t offset); |