Whamcloud - gitweb
b=3244
[fs/lustre-release.git] / lustre / kernel_patches / patches / pagecache-lock-2.4.21-chaos.patch
1 Index: linux-2.4.21-chaos/include/linux/swap.h
2 ===================================================================
3 --- linux-2.4.21-chaos.orig/include/linux/swap.h        2003-12-12 16:24:33.000000000 +0300
4 +++ linux-2.4.21-chaos/include/linux/swap.h     2003-12-12 16:41:15.000000000 +0300
5 @@ -95,7 +95,7 @@
6  extern atomic_t page_cache_size;
7  extern atomic_t buffermem_pages;
8  
9 -#if 1
10 +#if 0
11  
12  static inline void
13         lock_pagecache(void) { br_write_lock(BR_PAGECACHE_LOCK); }
14 @@ -110,6 +110,7 @@
15  
16  extern spinlock_cacheline_t pagecache_lock_cacheline;
17  #define __pagecache_lock (pagecache_lock_cacheline.lock)
18 +#define pagecache_lock (pagecache_lock_cacheline.lock)
19  
20  static inline void
21         lock_pagecache(void) { spin_lock(&__pagecache_lock); }