patch-1.3.69 linux/include/linux/pagemap.h
Next file: linux/include/linux/pipe_fs_i.h
Previous file: linux/include/linux/optcd.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue Feb 27 13:35:21 1996
- Orig file:
v1.3.68/linux/include/linux/pagemap.h
- Orig date:
Wed Feb 7 15:11:38 1996
diff -u --recursive --new-file v1.3.68/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -9,6 +9,9 @@
* Copyright 1995 Linus Torvalds
*/
+#include <linux/mm.h>
+#include <linux/fs.h>
+
static inline unsigned long page_address(struct page * page)
{
return PAGE_OFFSET + PAGE_SIZE*(page - mem_map);
@@ -45,12 +48,13 @@
{
struct page *page;
unsigned long flags;
-
+
for (page = page_hash(inode, offset); page ; page = page->next_hash) {
if (page->inode != inode)
continue;
if (page->offset != offset)
continue;
+ /* Found the page. */
save_flags(flags);
cli();
page->referenced = 1;
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