patch-2.4.19 linux-2.4.19/include/linux/swap.h
Next file: linux-2.4.19/include/linux/sysctl.h
Previous file: linux-2.4.19/include/linux/sunrpc/xprt.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/include/linux/swap.h
- Orig date:
Thu Nov 22 11:46:19 2001
diff -urN linux-2.4.18/include/linux/swap.h linux-2.4.19/include/linux/swap.h
@@ -90,7 +90,10 @@
extern atomic_t nr_async_pages;
extern atomic_t page_cache_size;
extern atomic_t buffermem_pages;
-extern spinlock_t pagecache_lock;
+
+extern spinlock_cacheline_t pagecache_lock_cacheline;
+#define pagecache_lock (pagecache_lock_cacheline.lock)
+
extern void __remove_inode_page(struct page *);
/* Incomplete types for prototype declarations: */
@@ -156,7 +159,8 @@
asmlinkage long sys_swapoff(const char *);
asmlinkage long sys_swapon(const char *, int);
-extern spinlock_t pagemap_lru_lock;
+extern spinlock_cacheline_t pagemap_lru_lock_cacheline;
+#define pagemap_lru_lock pagemap_lru_lock_cacheline.lock
extern void FASTCALL(mark_page_accessed(struct page *));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)