patch-1.3.60 linux/include/linux/pagemap.h
Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/netdevice.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Feb 7 08:55:41 1996
- Orig file:
v1.3.59/linux/include/linux/pagemap.h
- Orig date:
Tue Jan 23 21:15:53 1996
diff -u --recursive --new-file v1.3.59/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_PAGEMAP_H
#define _LINUX_PAGEMAP_H
+#include <asm/system.h>
+
/*
* Page-mapping primitive inline functions
*
@@ -42,14 +44,18 @@
static inline struct page * find_page(struct inode * inode, unsigned long offset)
{
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;
+ save_flags(flags);
+ cli();
page->referenced = 1;
page->count++;
+ restore_flags(flags);
break;
}
return 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