diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2015-01-22 12:09:47 -0500 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-05-27 19:39:48 +0200 |
| commit | 427d2c964d5a609647350a1c3eed6cadf1d53e53 (patch) | |
| tree | 6fc87f7e28e87ed7239c84e9cf8b76ce4e0fa337 /include | |
| parent | 244ce5462adda80c97a9b3f4c055fffca5c71276 (diff) | |
mm: add find_get_page_flags() for 3.18 ext4 backport
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pagemap.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 810267983..3b3b58a30 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -243,8 +243,18 @@ static inline struct page *page_cache_alloc_readahead(struct address_space *x) typedef int filler_t(void *, struct page *); -extern struct page * find_get_page(struct address_space *mapping, - pgoff_t index); +extern struct page * find_get_page_flags(struct address_space *mapping, + pgoff_t index, int fgp_flags); + +#define FGP_ACCESSED 0x00000001 + +static inline struct page* find_get_page(struct address_space *mapping, + pgoff_t index) +{ + return find_get_page_flags(mapping, index, 0); +} + + extern struct page * find_lock_page(struct address_space *mapping, pgoff_t index); extern struct page * find_or_create_page(struct address_space *mapping, |
