patch-1.3.56 linux/include/linux/pagemap.h
Next file: linux/mm/filemap.c
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Mon Jan 8 08:14:54 1996
- Orig file:
v1.3.55/linux/include/linux/pagemap.h
- Orig date:
Sat Jan 6 19:10:40 1996
diff -u --recursive --new-file v1.3.55/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -39,6 +39,16 @@
#define page_hash(inode,offset) page_hash_table[_page_hashfn(inode,offset)]
+static inline int page_age_update(struct page * page, int accessed)
+{
+ unsigned int age = page->age;
+ if (accessed)
+ age |= PAGE_AGE_VALUE << 1;
+ age >>= 1;
+ page->age = age;
+ return age > (PAGE_AGE_VALUE >> 1);
+}
+
static inline struct page * find_page(struct inode * inode, unsigned long offset)
{
struct page *page;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this