aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pagemap.h14
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,